From c998bbfbe67444f463ec5427af8255a09b994d34 Mon Sep 17 00:00:00 2001 From: Arun Mishra <68141066+arun-mi@users.noreply.github.com> Date: Tue, 21 Nov 2023 16:54:23 +0530 Subject: [PATCH] fix: HS-154: reverting ApplePay file to older version for AB testing (#37) Co-authored-by: arun.mishra --- src/Payments/ApplePay.res | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/Payments/ApplePay.res b/src/Payments/ApplePay.res index 9de0848db..bce9198fa 100644 --- a/src/Payments/ApplePay.res +++ b/src/Payments/ApplePay.res @@ -6,8 +6,8 @@ let default = (props: props) => { let setIsShowOrPayUsing = Recoil.useSetRecoilState(RecoilAtoms.isShowOrPayUsing) let (showApplePay, setShowApplePay) = React.useState(() => false) let (showApplePayLoader, setShowApplePayLoader) = React.useState(() => false) - let intent = PaymentHelpers.usePaymentIntent(Some(loggerState), Applepay) - let sync = PaymentHelpers.usePaymentSync(Some(loggerState), Applepay) + let intent = PaymentHelpers.usePaymentIntent(None, Applepay) + let sync = PaymentHelpers.usePaymentSync(None, Applepay) let options = Recoil.useRecoilValueFromAtom(RecoilAtoms.optionAtom) let (applePayClicked, setApplePayClicked) = React.useState(_ => false) let isApplePaySDKFlow = props.sessionObj->Belt.Option.isSome @@ -269,11 +269,6 @@ let default = (props: props) => { ) }, [isInvokeSDKFlow]) - React.useEffect0(() => { - setIsShowOrPayUsing(.prev => prev || showApplePay) - None - }) -
{if showApplePay {