Skip to content

Commit bc960e6

Browse files
committed
frontend: fix deactivated account links to empty screen
When clicking a deactivated account (Bitcoin, Litecoin, Ethereum) the content area turns gray. Added a check to test if the account is active before routing. Tokens already had this check.
1 parent a9e59d6 commit bc960e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontends/web/src/routes/settings/manage-accounts.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ class ManageAccounts extends Component<Props, State> {
107107
return (
108108
<div key={account.code} className={style.setting}>
109109
<div
110-
className={`${style.acccountLink} ${style.accountActive}`}
111-
onClick={() => route(`/account/${account.code}`)}>
110+
className={`${style.acccountLink} ${active ? style.accountActive : ''}`}
111+
onClick={() => active && route(`/account/${account.code}`)}>
112112
<Logo className={`${style.coinLogo} m-right-half`} coinCode={account.coinCode} alt={account.coinUnit} />
113113
<span className={style.accountName}>
114114
{account.name}

0 commit comments

Comments
 (0)