From 5a7d92295bfa076a5bb82443aeb121495a4bb5dc Mon Sep 17 00:00:00 2001 From: robertu <4065233+robertu7@users.noreply.github.com> Date: Thu, 27 Oct 2022 17:22:23 +0800 Subject: [PATCH] fix(donation): show error based on currency type --- src/components/Forms/PaymentForm/PayTo/SetAmount/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Forms/PaymentForm/PayTo/SetAmount/index.tsx b/src/components/Forms/PaymentForm/PayTo/SetAmount/index.tsx index 7a17aaec99..b44da53205 100644 --- a/src/components/Forms/PaymentForm/PayTo/SetAmount/index.tsx +++ b/src/components/Forms/PaymentForm/PayTo/SetAmount/index.tsx @@ -141,7 +141,8 @@ const SetAmount: React.FC = ({ 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 : ''