Skip to content

Commit

Permalink
fix: mandate data pass hide checkbox (#308)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pritish Budhiraja authored Apr 17, 2024
1 parent 30553d9 commit 51c98ab
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Payments/CardPayment.res
Original file line number Diff line number Diff line change
Expand Up @@ -183,15 +183,14 @@ 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 &&
!isBancontact

let nicknameFieldClassName = conditionsForShowingSaveCardCheckbox ? "pt-2" : "pt-5"

Js.log2("sdvjnsddsjd", (list.mandate_payment, options.terms.card))

<div className="animate-slowShow">
<RenderIf condition={showFields || isBancontact}>
<div
Expand Down

0 comments on commit 51c98ab

Please sign in to comment.