aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components
diff options
context:
space:
mode:
Diffstat (limited to 'ui/app/components')
-rw-r--r--ui/app/components/account-menu/index.js5
-rw-r--r--ui/app/components/wallet-view.js4
2 files changed, 4 insertions, 5 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()
diff --git a/ui/app/components/wallet-view.js b/ui/app/components/wallet-view.js
index f06c4d512..a870a24e3 100644
--- a/ui/app/components/wallet-view.js
+++ b/ui/app/components/wallet-view.js
@@ -47,7 +47,7 @@ WalletView.prototype.renderWalletBalance = function () {
hideSidebar,
sidebarOpen,
} = this.props
-
+ console.log({ selectedAccount })
const selectedClass = selectedTokenAddress
? ''
: 'wallet-balance-wrapper--active'
@@ -63,7 +63,7 @@ WalletView.prototype.renderWalletBalance = function () {
},
[
h(BalanceComponent, {
- balanceValue: selectedAccount.balance,
+ balanceValue: selectedAccount ? selectedAccount.balance : '',
style: {},
}),
]