mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Merge pull request #2733 from MetaMask/i2380-ShowNoBalance
Show watched tokens with no balance
This commit is contained in:
commit
6843a79fe9
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
## Current Master
|
## Current Master
|
||||||
|
|
||||||
|
- Show tokens that are held that have no balance.
|
||||||
|
|
||||||
## 3.13.2 2017-12-9
|
## 3.13.2 2017-12-9
|
||||||
|
|
||||||
- Reduce new block polling interval to 8000 ms, to ease server load.
|
- Reduce new block polling interval to 8000 ms, to ease server load.
|
||||||
|
@ -194,10 +194,7 @@ TokenList.prototype.componentWillUpdate = 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…
x
Reference in New Issue
Block a user