|
|
@ -134,17 +134,17 @@ TokenList.prototype.createFreshTokenTracker = function () { |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
TokenList.prototype.componentDidUpdate = function (nextProps) { |
|
|
|
TokenList.prototype.componentDidUpdate = function (prevProps) { |
|
|
|
const { |
|
|
|
const { |
|
|
|
network: oldNet, |
|
|
|
network: oldNet, |
|
|
|
userAddress: oldAddress, |
|
|
|
userAddress: oldAddress, |
|
|
|
tokens, |
|
|
|
tokens, |
|
|
|
} = this.props |
|
|
|
} = prevProps |
|
|
|
const { |
|
|
|
const { |
|
|
|
network: newNet, |
|
|
|
network: newNet, |
|
|
|
userAddress: newAddress, |
|
|
|
userAddress: newAddress, |
|
|
|
tokens: newTokens, |
|
|
|
tokens: newTokens, |
|
|
|
} = nextProps |
|
|
|
} = this.props |
|
|
|
|
|
|
|
|
|
|
|
const isLoading = newNet === 'loading' |
|
|
|
const isLoading = newNet === 'loading' |
|
|
|
const missingInfo = !oldNet || !newNet || !oldAddress || !newAddress |
|
|
|
const missingInfo = !oldNet || !newNet || !oldAddress || !newAddress |
|
|
|