aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/pages
diff options
context:
space:
mode:
authorEsteban MIno <efmino@uc.cl>2018-08-04 06:01:40 +0800
committerEsteban MIno <efmino@uc.cl>2018-08-04 06:01:40 +0800
commit12dd7a72323bf82d60e99502104e375864c0fbab (patch)
tree4023e898fdc8b34cabd3e9fc447b41657b7373f4 /ui/app/components/pages
parent081884bd8095b2027e88fabdfe297f6d2fc8c38e (diff)
downloadtangerine-wallet-browser-12dd7a72323bf82d60e99502104e375864c0fbab.tar
tangerine-wallet-browser-12dd7a72323bf82d60e99502104e375864c0fbab.tar.gz
tangerine-wallet-browser-12dd7a72323bf82d60e99502104e375864c0fbab.tar.bz2
tangerine-wallet-browser-12dd7a72323bf82d60e99502104e375864c0fbab.tar.lz
tangerine-wallet-browser-12dd7a72323bf82d60e99502104e375864c0fbab.tar.xz
tangerine-wallet-browser-12dd7a72323bf82d60e99502104e375864c0fbab.tar.zst
tangerine-wallet-browser-12dd7a72323bf82d60e99502104e375864c0fbab.zip
popup initializing with suggested tokens
Diffstat (limited to 'ui/app/components/pages')
-rw-r--r--ui/app/components/pages/home.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/ui/app/components/pages/home.js b/ui/app/components/pages/home.js
index 97aaedd37..3b0a34f97 100644
--- a/ui/app/components/pages/home.js
+++ b/ui/app/components/pages/home.js
@@ -34,16 +34,12 @@ class Home extends Component {
componentDidMount () {
const {
history,
- unapprovedTxs = {},
- unapprovedMsgCount = 0,
- unapprovedPersonalMsgCount = 0,
- unapprovedTypedMessagesCount = 0,
suggestedTokens = {},
unconfirmedTransactionsCount = 0,
} = this.props
// suggested new tokens
- if (suggestedTokens.length > 0) {
+ if (Object.keys(suggestedTokens).length > 0) {
history.push(CONFIRM_ADD_TOKEN_ROUTE)
}
@@ -238,7 +234,7 @@ function mapStateToProps (state) {
isRevealingSeedWords: state.metamask.isRevealingSeedWords,
Qr: state.appState.Qr,
welcomeScreenSeen: state.metamask.welcomeScreenSeen,
-
+ suggestedTokens: state.metamask.suggestedTokens,
// state needed to get account dropdown temporarily rendering from app bar
selected,
unconfirmedTransactionsCount: unconfirmedTransactionsCountSelector(state),