Skip to content

Commit

Permalink
Ensure tokens cannot be sent in cases where user has not added the token
Browse files Browse the repository at this point in the history
  • Loading branch information
danjm committed May 11, 2020
1 parent 218a2ca commit c47dccc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/components/Views/SendFlow/Confirm/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ class Confirm extends PureComponent {
weiBalance = contractBalances[selectedAsset.address];
weiInput = toBN(amount);
errorMessage =
weiBalance === undefined || weiBalance.gte(weiInput)
weiBalance && weiBalance.gte(weiInput)
? undefined
: strings('transaction.insufficient_tokens', { token: selectedAsset.symbol });
}
Expand Down

0 comments on commit c47dccc

Please sign in to comment.