Skip to content

Commit

Permalink
Remove warning on input
Browse files Browse the repository at this point in the history
  • Loading branch information
iris salcedo committed Aug 17, 2021
1 parent a77c870 commit c009bfe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/shared/amountField/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ const AmountField = ({

const handleAmountChange = ({ target }) => {
setAmountField(target, maxAmount);
if (showEntireBalanceWarning && target.value < maxAmount.value) {
setShowEntireBalanceWarning(false);
}
};

const ignoreClicks = (e) => {
Expand Down

0 comments on commit c009bfe

Please sign in to comment.