From 417e445e98752182bd96c5adf2e78eb2115d4fc4 Mon Sep 17 00:00:00 2001 From: robertu <4065233+robertu7@users.noreply.github.com> Date: Thu, 20 Oct 2022 23:58:22 +0800 Subject: [PATCH] fix(donation): correct input disable logic --- src/components/Forms/PaymentForm/PayTo/SetAmount.tsx | 4 ++-- src/components/Forms/PaymentForm/PaymentInfo/index.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Forms/PaymentForm/PayTo/SetAmount.tsx b/src/components/Forms/PaymentForm/PayTo/SetAmount.tsx index 5a2320c15a..4540774e94 100644 --- a/src/components/Forms/PaymentForm/PayTo/SetAmount.tsx +++ b/src/components/Forms/PaymentForm/PayTo/SetAmount.tsx @@ -384,7 +384,7 @@ const SetAmount: React.FC = ({ balance={isUSDT ? balanceUSDT : isHKD ? balanceHKD : balanceLike} amounts={AMOUNT_OPTIONS} name="amount" - disabled={locked || !isConnectedAddress} + disabled={locked || (isUSDT && !isConnectedAddress)} value={values.amount} error={errors.amount} onBlur={handleBlur} @@ -404,7 +404,7 @@ const SetAmount: React.FC = ({ {canProcess && (
= ({