From 0d426c7accf1852b6f17792bf928c7dbfcdbb583 Mon Sep 17 00:00:00 2001 From: Pritish Budhiraja <1805317@kiit.ac.in> Date: Wed, 13 Mar 2024 16:47:16 +0530 Subject: [PATCH] fix: dependency changes --- src/Payments/CardPayment.res | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Payments/CardPayment.res b/src/Payments/CardPayment.res index 7ee064e0b..b9e3d648e 100644 --- a/src/Payments/CardPayment.res +++ b/src/Payments/CardPayment.res @@ -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