Skip to content

Commit

Permalink
fix(donation): show error based on currency type
Browse files Browse the repository at this point in the history
  • Loading branch information
robertu7 committed Oct 27, 2022
1 parent 4d45ea1 commit 5a7d922
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

0 comments on commit 5a7d922

Please sign in to comment.