mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Show tokens with zero balance
This commit is contained in:
parent
9e3f921ba9
commit
59e46e7cb2
@ -151,10 +151,7 @@ TokenList.prototype.componentDidUpdate = function (nextProps) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
TokenList.prototype.updateBalances = function (tokens) {
|
TokenList.prototype.updateBalances = function (tokens) {
|
||||||
const heldTokens = tokens.filter(token => {
|
this.setState({ tokens, isLoading: false })
|
||||||
return token.balance !== '0' && token.string !== '0.000'
|
|
||||||
})
|
|
||||||
this.setState({ tokens: heldTokens, isLoading: false })
|
|
||||||
}
|
}
|
||||||
|
|
||||||
TokenList.prototype.componentWillUnmount = function () {
|
TokenList.prototype.componentWillUnmount = function () {
|
||||||
|
Loading…
Reference in New Issue
Block a user