mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Fix Component#componentDidUpdate usage (#5977)
This commit is contained in:
parent
cdb202a65e
commit
866b9af69e
@ -134,17 +134,17 @@ TokenList.prototype.createFreshTokenTracker = function () {
|
||||
})
|
||||
}
|
||||
|
||||
TokenList.prototype.componentDidUpdate = function (nextProps) {
|
||||
TokenList.prototype.componentDidUpdate = function (prevProps) {
|
||||
const {
|
||||
network: oldNet,
|
||||
userAddress: oldAddress,
|
||||
tokens,
|
||||
} = this.props
|
||||
} = prevProps
|
||||
const {
|
||||
network: newNet,
|
||||
userAddress: newAddress,
|
||||
tokens: newTokens,
|
||||
} = nextProps
|
||||
} = this.props
|
||||
|
||||
const isLoading = newNet === 'loading'
|
||||
const missingInfo = !oldNet || !newNet || !oldAddress || !newAddress
|
||||
|
Loading…
Reference in New Issue
Block a user