From 3252670de391be737455b46cdede6a5b50015798 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, 1 insertion(+), 5 deletions(-) diff --git a/src/Payments/ApplePay.res b/src/Payments/ApplePay.res index 7eee63271..091aabc5e 100644 --- a/src/Payments/ApplePay.res +++ b/src/Payments/ApplePay.res @@ -1,6 +1,7 @@ type props = {sessionObj: option, list: PaymentMethodsRecord.list} let default = (props: props) => { + let loggerState = Recoil.useRecoilValueFromAtom(RecoilAtoms.loggerAtom) let {publishableKey} = Recoil.useRecoilValueFromAtom(RecoilAtoms.keys) let (showApplePay, setShowApplePay) = React.useState(() => false) let (showApplePayLoader, setShowApplePayLoader) = React.useState(() => false) @@ -251,11 +252,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) => {