Skip to content

Commit

Permalink
fix: card holder name
Browse files Browse the repository at this point in the history
  • Loading branch information
sakksham7 committed Nov 14, 2024
1 parent 6484f18 commit 3cfc3b2
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/Components/DynamicFields.res
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,21 @@ let make = (
if paymentMethod === "card" {
let creditRequiredFields = creditPaymentMethodTypes.required_fields

paymentMethodTypes.required_fields
->Array.concat(creditRequiredFields)
->removeRequiredFieldsDuplicates
[
...paymentMethodTypes.required_fields,
...creditRequiredFields,
]->removeRequiredFieldsDuplicates
} else if dynamicFieldsEnabledPaymentMethods->Array.includes(paymentMethodType) {
paymentMethodTypes.required_fields
} else {
[]
}
}, (paymentMethod, paymentMethodTypes.required_fields, paymentMethodType))
}, (
paymentMethod,
paymentMethodTypes.required_fields,
paymentMethodType,
creditPaymentMethodTypes.required_fields,
))

let requiredFields = React.useMemo(() => {
requiredFieldsWithBillingDetails->removeBillingDetailsIfUseBillingAddress(billingAddress)
Expand Down

0 comments on commit 3cfc3b2

Please sign in to comment.