Browse Source

Fix IsUnlocked shouldComponentUpdate

master
meriadec 7 years ago
parent
commit
d26b58de29
No known key found for this signature in database GPG Key ID: 1D2FC2305E2CB399
  1. 4
      src/components/IsUnlocked.js

4
src/components/IsUnlocked/index.js → src/components/IsUnlocked.js

@ -81,6 +81,10 @@ class IsUnlocked extends Component<Props, State> {
return true
}
if (!nextProps.isLocked && this.props.isLocked) {
return true
}
return nextProps.children !== this.props.children
}
Loading…
Cancel
Save