Skip to content

Commit

Permalink
fix: HS-12344: Email fields empty for saved cards flow (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
prafulkoppalkar authored Feb 1, 2024
1 parent e8a512c commit 710f705
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Payments/CardPayment.res
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ let make = (
~isCvcValidValue,
)

let submitCallback = React.useCallback((ev: Window.event) => {
let submitCallback = React.useCallback2((ev: Window.event) => {
let json = ev.data->Js.Json.parseExn
let confirm = json->getDictFromJson->ConfirmType.itemToObjMapper
let (month, year) = CardUtils.getExpiryDates(cardExpiry)
Expand Down Expand Up @@ -224,7 +224,7 @@ let make = (
}
}
}
})
}, (areRequiredFieldsValid, requiredFieldsBody))
submitPaymentData(submitCallback)

let paymentMethod = isBancontact ? "bank_redirect" : "card"
Expand Down

0 comments on commit 710f705

Please sign in to comment.