diff --git a/src/Animate.js b/src/Animate.js index 7f1bbc9..a687698 100644 --- a/src/Animate.js +++ b/src/Animate.js @@ -97,7 +97,7 @@ class Animate extends PureComponent { const newState = { style: attributeName ? { [attributeName]: from } : from, }; - if ((attributeName && [attributeName] !== from) || (!attributeName && style !== from)) { + if ((attributeName && style[attributeName] !== from) || (!attributeName && style !== from)) { // eslint-disable-next-line react/no-did-update-set-state this.setState(newState); }