From 90b211dc71dd2a7115546cf4b0d3cfae8750205e Mon Sep 17 00:00:00 2001 From: Arun Mishra <68141066+arun-mi@users.noreply.github.com> Date: Mon, 13 Nov 2023 21:35:46 +0530 Subject: [PATCH] fix: HS-158: Updated the ApplePay file on main (#23) Co-authored-by: arun.mishra --- src/Payments/ApplePay.res | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/Payments/ApplePay.res b/src/Payments/ApplePay.res index cc47a215c..ef4a11871 100644 --- a/src/Payments/ApplePay.res +++ b/src/Payments/ApplePay.res @@ -2,7 +2,6 @@ type props = {sessionObj: option, list: PaymentMethodsRecord.list} let default = (props: props) => { let loggerState = Recoil.useRecoilValueFromAtom(RecoilAtoms.loggerAtom) - let setIsShowOrPayUsing = Recoil.useSetRecoilState(RecoilAtoms.isShowOrPayUsing) let {publishableKey} = Recoil.useRecoilValueFromAtom(RecoilAtoms.keys) let (showApplePay, setShowApplePay) = React.useState(() => false) let (showApplePayLoader, setShowApplePayLoader) = React.useState(() => false) @@ -235,11 +234,6 @@ let default = (props: props) => { ) } - React.useEffect0(() => { - setIsShowOrPayUsing(.prev => prev || showApplePay) - None - }) - React.useEffect1(() => { Utils.handlePostMessage([("applePayMounted", true->Js.Json.boolean)]) let handleApplePayMessages = (ev: Window.event) => {