diff --git a/packages/core/src/App/Containers/AccountSwitcher/account-switcher.jsx b/packages/core/src/App/Containers/AccountSwitcher/account-switcher.jsx index d02570582aa0..5c23c1cf8745 100644 --- a/packages/core/src/App/Containers/AccountSwitcher/account-switcher.jsx +++ b/packages/core/src/App/Containers/AccountSwitcher/account-switcher.jsx @@ -337,7 +337,7 @@ const AccountSwitcher = props => { .reduce( (total, account) => { const real_account_loginid = props.account_list?.find(acc => !acc.is_virtual)?.loginid; - if (!is_demo && props.accounts[real_account_loginid].currency !== account.currency) { + if (!is_demo && props.accounts[real_account_loginid]?.currency !== account.currency) { total.balance += account.balance * exchanged_rate; } else { total.balance += account.balance;