Skip to content

Commit

Permalink
fix: 🚑 fix 'Insufficient balance' condition
Browse files Browse the repository at this point in the history
  • Loading branch information
heorhi-deriv committed Aug 30, 2023
1 parent 910ca5e commit 08c8a75
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ const AccountTransferForm = observer(
});
if (!is_ok) return message;

if (selected_from.balance ?? Number(selected_from.balance) < Number(amount))
if (typeof selected_from.balance !== 'undefined' && Number(selected_from.balance) < Number(amount))
return localize('Insufficient balance');

return undefined;
Expand Down

0 comments on commit 08c8a75

Please sign in to comment.