diff options
author | Chi Kei Chan <chikeichan@gmail.com> | 2017-10-20 03:47:44 +0800 |
---|---|---|
committer | Chi Kei Chan <chikeichan@gmail.com> | 2017-10-20 03:47:44 +0800 |
commit | 376ae032fedb99d22b7c71438ec9482d2013c78e (patch) | |
tree | 182064835bbcb717b5494bd545330f36b7f383a6 /ui/app/components/account-menu/index.js | |
parent | d3f923efefef893db31c18aa4ff4e2488a5b6448 (diff) | |
download | tangerine-wallet-browser-376ae032fedb99d22b7c71438ec9482d2013c78e.tar tangerine-wallet-browser-376ae032fedb99d22b7c71438ec9482d2013c78e.tar.gz tangerine-wallet-browser-376ae032fedb99d22b7c71438ec9482d2013c78e.tar.bz2 tangerine-wallet-browser-376ae032fedb99d22b7c71438ec9482d2013c78e.tar.lz tangerine-wallet-browser-376ae032fedb99d22b7c71438ec9482d2013c78e.tar.xz tangerine-wallet-browser-376ae032fedb99d22b7c71438ec9482d2013c78e.tar.zst tangerine-wallet-browser-376ae032fedb99d22b7c71438ec9482d2013c78e.zip |
Fix selectors
Diffstat (limited to 'ui/app/components/account-menu/index.js')
-rw-r--r-- | ui/app/components/account-menu/index.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ui/app/components/account-menu/index.js b/ui/app/components/account-menu/index.js index 2ebdba24a..85bd21076 100644 --- a/ui/app/components/account-menu/index.js +++ b/ui/app/components/account-menu/index.js @@ -35,7 +35,6 @@ function mapDispatchToProps (dispatch) { dispatch(actions.toggleAccountMenu()) }, showConfigPage: () => { - console.log('hihihih') dispatch(actions.showConfigPage()) dispatch(actions.toggleAccountMenu()) }, @@ -60,7 +59,6 @@ AccountMenu.prototype.render = function () { showConfigPage, } = this.props - console.log(showConfigPage) return h(Menu, { className: 'account-menu', isShowing: isAccountMenuOpen }, [ h(CloseArea, { onClick: toggleAccountMenu }), h(Item, { @@ -105,11 +103,12 @@ AccountMenu.prototype.renderAccounts = function () { showAccountDetail, } = this.props + console.log({ accounts }) return Object.keys(identities).map((key, index) => { const identity = identities[key] const isSelected = identity.address === selected - const balanceValue = accounts[key].balance + const balanceValue = accounts[key] ? accounts[key].balance : '' const formattedBalance = balanceValue ? formatBalance(balanceValue, 6) : '...' const simpleAddress = identity.address.substring(2).toLowerCase() |