Skip to content

Commit

Permalink
Merge pull request #35 from copios-jp/master
Browse files Browse the repository at this point in the history
fix(constrainedUpdate): update on any true constraint evaluation
  • Loading branch information
copios authored Jan 23, 2019
2 parents 3d2cd7f + b58231f commit 7ad45fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/renderer/components/sensor/shared/index.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const constrainedUpdate = (current, next, negations) => {
return negations.every((negation) => {
return negations.some((negation) => {
return typeof negation === 'function'
? negation(current) !== negation(next)
: current[negation] !== next[negation]
Expand Down

0 comments on commit 7ad45fa

Please sign in to comment.