Skip to content

Commit

Permalink
fix: HS-132: Fixed Card Holder Name (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArushKapoorJuspay authored Dec 7, 2023
1 parent aefe773 commit a0694da
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Components/DynamicFields.res
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ let make = (
| _ => acc
}
}, "")
->Js.String2.trim
}

let setFields = (
Expand Down Expand Up @@ -394,8 +395,9 @@ let make = (
}
if (
isSavedCardFlow &&
(item.field_type === BillingName || item.field_type === FullName) &&
item.display_name === "card_holder_name" &&
(item.field_type === BillingName || item.field_type === FullName)
item.required_field === "payment_method_data.card.card_holder_name"
) {
if !isAllStoredCardsHaveName {
acc->Js.Dict.set(
Expand Down

0 comments on commit a0694da

Please sign in to comment.