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) => {