Skip to content

Commit

Permalink
fix: dependency changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Pritish Budhiraja committed Mar 13, 2024
1 parent 4661bcf commit 0d426c7
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 @@ -103,13 +103,13 @@ let make = (
~isCvcValidValue,
)

let isCustomerAcceptanceRequired = React.useMemo1(() => {
let isCustomerAcceptanceRequired = React.useMemo2(() => {
if displaySavedPaymentMethodsCheckbox {
isSaveCardsChecked || list.payment_type === SETUP_MANDATE
} else {
!(isGuestCustomer || list.payment_type === NORMAL)
}
}, [isSaveCardsChecked])
}, (isSaveCardsChecked, list.payment_type))

let submitCallback = React.useCallback6((ev: Window.event) => {
let json = ev.data->JSON.parseExn
Expand Down

0 comments on commit 0d426c7

Please sign in to comment.