diff --git a/src/Payments/ApplePay.res b/src/Payments/ApplePay.res index cc8ba8282..40f93b24a 100644 --- a/src/Payments/ApplePay.res +++ b/src/Payments/ApplePay.res @@ -223,6 +223,11 @@ 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) => { @@ -263,8 +268,6 @@ let default = (props: props) => { ) }, [isInvokeSDKFlow]) - setIsShowOrPayUsing(.prev => prev || showApplePay) -