diff --git a/src/Components/SavedMethods.res b/src/Components/SavedMethods.res index ca1751825..7d8544605 100644 --- a/src/Components/SavedMethods.res +++ b/src/Components/SavedMethods.res @@ -176,8 +176,16 @@ let make = ( let conditionsForShowingSaveCardCheckbox = React.useMemo(() => { !isGuestCustomer && paymentMethodListValue.payment_type === NEW_MANDATE && - displaySavedPaymentMethodsCheckbox - }, (isGuestCustomer, paymentMethodListValue.payment_type, displaySavedPaymentMethodsCheckbox)) + displaySavedPaymentMethodsCheckbox && + savedMethods->Array.some(ele => { + ele.paymentMethod === "card" && ele.requiresCvv + }) + }, ( + isGuestCustomer, + paymentMethodListValue.payment_type, + displaySavedPaymentMethodsCheckbox, + savedMethods, + ))
{if savedCardlength === 0 && (loadSavedCards === PaymentType.LoadingSavedCards || !showFields) {