update fix

This commit is contained in:
Mikhail Mikheev 2019-04-15 22:24:43 +04:00
parent 2c8a79e582
commit 7df11f3bcf
1 changed files with 6 additions and 6 deletions

View File

@ -29,13 +29,13 @@ class SafeView extends React.Component<Props> {
}, TIMEOUT)
}
// componentDidUpdate(prevProps) {
// const { activeTokens } = this.props
componentDidUpdate(prevProps) {
const { activeTokens } = this.props
// if (!activeTokens.equals(prevProps.activeTokens)) {
// this.checkForUpdates()
// }
// }
if (activeTokens.size > prevProps.activeTokens.size) {
this.checkForUpdates()
}
}
componentWillUnmount() {
clearInterval(this.intervalId)