Skip to content

Commit

Permalink
Merge pull request #2865 from thematters/fix/set-amount-error-handing
Browse files Browse the repository at this point in the history
fix(donation): show error based on currency type
  • Loading branch information
robertu7 authored Oct 27, 2022
2 parents 4d45ea1 + 5a7d922 commit 6d240fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Forms/PaymentForm/PayTo/SetAmount/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@ const SetAmount: React.FC<FormProps> = ({
const balance = isUSDT ? balanceUSDT : isHKD ? balanceHKD : balanceLike
const maxAmount = isHKD ? PAYMENT_MAXIMUM_PAYTO_AMOUNT.HKD : Infinity
const networkEerror =
error || allowanceError || balanceUSDTError || approveError
error ||
(isUSDT ? allowanceError || balanceUSDTError || approveError : undefined)
? WALLET_ERROR_MESSAGES[lang].unknown
: ''

Expand Down

1 comment on commit 6d240fd

@vercel
Copy link

@vercel vercel bot commented on 6d240fd Oct 27, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.