aboutsummaryrefslogtreecommitdiffstats
path: root/old-ui
diff options
context:
space:
mode:
authorDan J Miller <danjm.com@gmail.com>2018-03-03 06:37:25 +0800
committerGitHub <noreply@github.com>2018-03-03 06:37:25 +0800
commit0c163dcb32ddafde8a8ed3e9e21be552a5eeeed5 (patch)
tree88dc0feb55a5708474d72505ae3e6ff41dff1898 /old-ui
parent6574f0b57b0fc9e3542f803403cca5c3920ee2e9 (diff)
downloadtangerine-wallet-browser-0c163dcb32ddafde8a8ed3e9e21be552a5eeeed5.tar
tangerine-wallet-browser-0c163dcb32ddafde8a8ed3e9e21be552a5eeeed5.tar.gz
tangerine-wallet-browser-0c163dcb32ddafde8a8ed3e9e21be552a5eeeed5.tar.bz2
tangerine-wallet-browser-0c163dcb32ddafde8a8ed3e9e21be552a5eeeed5.tar.lz
tangerine-wallet-browser-0c163dcb32ddafde8a8ed3e9e21be552a5eeeed5.tar.xz
tangerine-wallet-browser-0c163dcb32ddafde8a8ed3e9e21be552a5eeeed5.tar.zst
tangerine-wallet-browser-0c163dcb32ddafde8a8ed3e9e21be552a5eeeed5.zip
Allow adding 0 balance tokens in old ui and editing custom token info in new (#3395)
* Shows tokens with 0 balance in old ui; goHome after adding tokens. * Allow users to edit custom token info when not autofilled. (New UI add token screen).
Diffstat (limited to 'old-ui')
-rw-r--r--old-ui/app/add-token.js3
-rw-r--r--old-ui/app/components/token-list.js5
2 files changed, 4 insertions, 4 deletions
diff --git a/old-ui/app/add-token.js b/old-ui/app/add-token.js
index 8a3e66978..e869ac39a 100644
--- a/old-ui/app/add-token.js
+++ b/old-ui/app/add-token.js
@@ -156,6 +156,9 @@ AddTokenScreen.prototype.render = function () {
const { address, symbol, decimals } = this.state
this.props.dispatch(actions.addToken(address.trim(), symbol.trim(), decimals))
+ .then(() => {
+ this.props.dispatch(actions.goHome())
+ })
},
}, 'Add'),
]),
diff --git a/old-ui/app/components/token-list.js b/old-ui/app/components/token-list.js
index 998ec901d..149733b89 100644
--- a/old-ui/app/components/token-list.js
+++ b/old-ui/app/components/token-list.js
@@ -194,10 +194,7 @@ TokenList.prototype.componentWillUpdate = function (nextProps) {
}
TokenList.prototype.updateBalances = function (tokens) {
- const heldTokens = tokens.filter(token => {
- return token.balance !== '0' && token.string !== '0.000'
- })
- this.setState({ tokens: heldTokens, isLoading: false })
+ this.setState({ tokens, isLoading: false })
}
TokenList.prototype.componentWillUnmount = function () {