update fix
This commit is contained in:
parent
2c8a79e582
commit
7df11f3bcf
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue