Skip to content

Commit

Permalink
handle case dexAccount not exists
Browse files Browse the repository at this point in the history
  • Loading branch information
vctt94 committed Apr 23, 2021
1 parent c6a4028 commit 95886d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/actions/ControlActions.js
Expand Up @@ -1095,7 +1095,7 @@ export const unlockAcctAndExecFn = (
const dexAccount = accounts.find(
(acct) => acct.accountName === dexAccountName
);
if (dexAccount.accountNumber === acctNumber) {
if (dexAccount && dexAccount.accountNumber === acctNumber) {
// return fn error in case some happened.
if (fnError !== null) {
throw fnError;
Expand Down

0 comments on commit 95886d6

Please sign in to comment.