Skip to content

Commit

Permalink
perf(account propmt dialog): add check for non_crypto_currency variable
Browse files Browse the repository at this point in the history
  • Loading branch information
heorhi-deriv committed Aug 26, 2022
1 parent 3152601 commit c4e8a03
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const AccountPromptDialog = ({
[accounts]
);

const non_crypto_currency = accounts[non_crypto_account_loginid].currency;
const non_crypto_currency = non_crypto_account_loginid && accounts[non_crypto_account_loginid].currency;

return (
<Dialog
Expand Down

0 comments on commit c4e8a03

Please sign in to comment.