From 0fc2b8145c70dbe8650b5aafc11ff4a56f3f8efd Mon Sep 17 00:00:00 2001 From: Pritish Budhiraja <1805317@kiit.ac.in> Date: Tue, 12 Mar 2024 17:03:16 +0530 Subject: [PATCH] fix: apple_pay check --- src/Payments/ApplePay.res | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Payments/ApplePay.res b/src/Payments/ApplePay.res index e714c12e3..dd627a775 100644 --- a/src/Payments/ApplePay.res +++ b/src/Payments/ApplePay.res @@ -281,7 +281,7 @@ let make = ( ->ignore } - React.useEffect3(() => { + React.useEffect4(() => { let handleApplePayMessages = (ev: Window.event) => { let json = try { ev.data->Js.Json.parseExn @@ -317,7 +317,7 @@ let make = ( Window.removeEventListener("message", handleApplePayMessages) }, ) - }, (isInvokeSDKFlow, requiredFieldsBody, isWallet)) + }, (isInvokeSDKFlow, requiredFieldsBody, isWallet, isGuestCustomer)) React.useEffect4(() => { if (