aboutsummaryrefslogtreecommitdiffstats
path: root/old-ui/app/account-detail.js
diff options
context:
space:
mode:
authorBruno Barbieri <bruno.barbieri@consensys.net>2018-08-29 03:33:42 +0800
committerGitHub <noreply@github.com>2018-08-29 03:33:42 +0800
commit4560df6e739b97caf95ef5bc5bc93f91e8c890bb (patch)
tree76984504e65b06ae15633d721fedc7ddd5b0cca7 /old-ui/app/account-detail.js
parent0259eb02140fec1db9861506a6ff7890911af652 (diff)
parente743f44150d4c09908d24945de5a281e15e8469d (diff)
downloadtangerine-wallet-browser-4560df6e739b97caf95ef5bc5bc93f91e8c890bb.tar
tangerine-wallet-browser-4560df6e739b97caf95ef5bc5bc93f91e8c890bb.tar.gz
tangerine-wallet-browser-4560df6e739b97caf95ef5bc5bc93f91e8c890bb.tar.bz2
tangerine-wallet-browser-4560df6e739b97caf95ef5bc5bc93f91e8c890bb.tar.lz
tangerine-wallet-browser-4560df6e739b97caf95ef5bc5bc93f91e8c890bb.tar.xz
tangerine-wallet-browser-4560df6e739b97caf95ef5bc5bc93f91e8c890bb.tar.zst
tangerine-wallet-browser-4560df6e739b97caf95ef5bc5bc93f91e8c890bb.zip
Merge pull request #4606 from MetaMask/WatchTokenFeature
Add metamask_watchAsset
Diffstat (limited to 'old-ui/app/account-detail.js')
-rw-r--r--old-ui/app/account-detail.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/old-ui/app/account-detail.js b/old-ui/app/account-detail.js
index c67f0cf71..d240fc38e 100644
--- a/old-ui/app/account-detail.js
+++ b/old-ui/app/account-detail.js
@@ -32,6 +32,7 @@ function mapStateToProps (state) {
currentCurrency: state.metamask.currentCurrency,
currentAccountTab: state.metamask.currentAccountTab,
tokens: state.metamask.tokens,
+ suggestedTokens: state.metamask.suggestedTokens,
computedBalances: state.metamask.computedBalances,
}
}
@@ -49,6 +50,10 @@ AccountDetailScreen.prototype.render = function () {
var account = props.accounts[selected]
const { network, conversionRate, currentCurrency } = props
+ if (Object.keys(props.suggestedTokens).length > 0) {
+ this.props.dispatch(actions.showAddSuggestedTokenPage())
+ }
+
return (
h('.account-detail-section.full-flex-height', [