Skip to content

Commit

Permalink
Change code to handled undefined notification parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
tomballgithub committed Dec 19, 2017
1 parent 3268554 commit e758135
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static/js/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -1026,7 +1026,7 @@ function isNotifyPoke(poke) {
hasHighIV = notifiedMinPerfection > 0 && perfection >= notifiedMinPerfection
hasHighLevel = notifiedMinLevel > 0 && level >= notifiedMinLevel

hasHighAttributes = (hasHighIV && notifiedMinLevel === 0) || (hasHighLevel && notifiedMinPerfection === 0) || hasHighLevel && hasHighIV
hasHighAttributes = (hasHighIV && !(notifiedMinLevel > 0)) || (hasHighLevel && !(notifiedMinPerfection > 0)) || hasHighLevel && hasHighIV
}

return isOnNotifyList || hasHighAttributes
Expand Down

0 comments on commit e758135

Please sign in to comment.