Skip to content

Commit 9f62504

Browse files
committed
Address comments
1 parent bf899dd commit 9f62504

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

src/fund/components/FundCardPaymentMethodDropdown.tsx

+4-11
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,7 @@ export function FundCardPaymentMethodDropdown({
3838
return false;
3939
}
4040

41-
const amount = Number(fundAmountFiat);
42-
43-
return Boolean(
44-
(method.minAmount && amount < method.minAmount) ||
45-
(method.maxAmount && amount > method.maxAmount),
46-
);
41+
return Boolean(getPaymentMethodDisabledReason(method));
4742
},
4843
[fundAmountFiat],
4944
);
@@ -67,6 +62,8 @@ export function FundCardPaymentMethodDropdown({
6762
minimumFractionDigits: 0,
6863
})}`;
6964
}
65+
66+
return undefined;
7067
},
7168
[fundAmountFiat, currency],
7269
);
@@ -159,11 +156,7 @@ export function FundCardPaymentMethodDropdown({
159156
paymentMethod={paymentMethod}
160157
onClick={handlePaymentMethodSelect}
161158
disabled={isDisabled}
162-
disabledReason={
163-
isDisabled
164-
? getPaymentMethodDisabledReason(paymentMethod)
165-
: undefined
166-
}
159+
disabledReason={getPaymentMethodDisabledReason(paymentMethod)}
167160
/>
168161
);
169162
})}

0 commit comments

Comments
 (0)