diff --git a/src/components/accounts/AccountSwitcher.jsx b/src/components/accounts/AccountSwitcher.jsx index 3ce1663..29fa069 100644 --- a/src/components/accounts/AccountSwitcher.jsx +++ b/src/components/accounts/AccountSwitcher.jsx @@ -44,11 +44,12 @@ export class AccountSwitcher extends Component { render() { const { accounts, skin, allowAdd, allowLogout, highlightActiveAccount } = this.props; + const activeAccount = accounts.active; let {available} = accounts; if (highlightActiveAccount) { - available = available.filter((account) => account.id !== accounts.active.id); + available = available.filter((account) => account.id !== activeAccount.id); } return ( @@ -65,19 +66,19 @@ export class AccountSwitcher extends Component { )} />