diff --git a/ui/selectors/selectors.js b/ui/selectors/selectors.js index 1a29187ee..fecc756be 100644 --- a/ui/selectors/selectors.js +++ b/ui/selectors/selectors.js @@ -376,8 +376,8 @@ export const getMetaMaskAccountsConnected = createSelector( ); export function isBalanceCached(state) { - const selectedAccountBalance = - state.metamask.accounts[getSelectedAddress(state)].balance; + const selectedAccount = state.metamask.accounts[getSelectedAddress(state)]; + const selectedAccountBalance = selectedAccount && selectedAccount.balance; const cachedBalance = getSelectedAccountCachedBalance(state); return Boolean(!selectedAccountBalance && cachedBalance);