diff --git a/src/Components/SavedMethods.res b/src/Components/SavedMethods.res index ca17518..7d85446 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, + ))