Skip to content

Commit

Permalink
Merge pull request #2850 from thematters/develop
Browse files Browse the repository at this point in the history
fix(donation): correct input disable logic
  • Loading branch information
robertu7 authored Oct 20, 2022
2 parents e524178 + f003da0 commit a057a9a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/Forms/PaymentForm/PayTo/SetAmount.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ const SetAmount: React.FC<FormProps> = ({
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}
Expand All @@ -404,7 +404,7 @@ const SetAmount: React.FC<FormProps> = ({
{canProcess && (
<section className="set-amount-custom-amount-input">
<input
disabled={locked || !isConnectedAddress}
disabled={locked || (isUSDT && !isConnectedAddress)}
type="number"
name="customAmount"
min={0}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Forms/PaymentForm/PaymentInfo/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const PaymentInfo: React.FC<PaymentInfoProps> = ({
<Translate
zh_hant="你將遞出支持資金給"
zh_hans="你将递出支持资金给"
en="You will hand over support funds to"
en="You will support"
/>
</p>
<Avatar user={recipient} size="xxxl" />
Expand Down

0 comments on commit a057a9a

Please sign in to comment.