Skip to content

Commit

Permalink
feat: support send 0 amount token (#1374)
Browse files Browse the repository at this point in the history
  • Loading branch information
vvvvvv1vvvvvv committed May 12, 2023
1 parent 12e168e commit c5dfe43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/views/SendToken/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ const SendToken = () => {
const canSubmit =
isValidAddress(form.getFieldValue('to')) &&
!balanceError &&
new BigNumber(form.getFieldValue('amount')).isGreaterThan(0) &&
new BigNumber(form.getFieldValue('amount')).gte(0) &&
!isLoading &&
(!whitelistEnabled || temporaryGrant || toAddressInWhitelist);
const isNativeToken = currentToken.id === CHAINS[chain].nativeTokenAddress;
Expand Down

0 comments on commit c5dfe43

Please sign in to comment.