From 51c98abc4da2438195cfbb7e418bf7f47f800008 Mon Sep 17 00:00:00 2001 From: Pritish Budhiraja <1805317@kiit.ac.in> Date: Wed, 17 Apr 2024 18:33:36 +0530 Subject: [PATCH 1/2] fix: mandate data pass hide checkbox (#308) --- src/Payments/CardPayment.res | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Payments/CardPayment.res b/src/Payments/CardPayment.res index f2a16c723..acccb7ea4 100644 --- a/src/Payments/CardPayment.res +++ b/src/Payments/CardPayment.res @@ -183,6 +183,7 @@ let make = ( let paymentMethod = isBancontact ? "bank_redirect" : "card" let paymentMethodType = isBancontact ? "bancontact_card" : "debit" let conditionsForShowingSaveCardCheckbox = + list.mandate_payment->Option.isNone && !isGuestCustomer && list.payment_type !== SETUP_MANDATE && options.displaySavedPaymentMethodsCheckbox && @@ -190,8 +191,6 @@ let make = ( let nicknameFieldClassName = conditionsForShowingSaveCardCheckbox ? "pt-2" : "pt-5" - Js.log2("sdvjnsddsjd", (list.mandate_payment, options.terms.card)) -