From a7b52a9fbd2c60de86d3a91bd4b206a5b348aa89 Mon Sep 17 00:00:00 2001 From: Vrishab Srivatsa <136090360+vsrivatsa-juspay@users.noreply.github.com> Date: Tue, 2 Jul 2024 12:05:32 +0530 Subject: [PATCH] Apply suggestions from code review --- src/Payments/PayPal.res | 2 +- src/Payments/PaypalSDKHelpers.res | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Payments/PayPal.res b/src/Payments/PayPal.res index a3ca1fcca..3e4c0f541 100644 --- a/src/Payments/PayPal.res +++ b/src/Payments/PayPal.res @@ -48,7 +48,7 @@ let make = () => { ->then(result => { let result = result->JSON.Decode.bool->Option.getOr(false) if result { - UtilityHooks.useHandlePostMessages(~complete=true, ~empty=true, ~paymentType="paypal") + UtilityHooks.useHandlePostMessages(~complete=true, ~empty=false, ~paymentType="paypal") let (connectors, _) = paymentMethodListValue->PaymentUtils.getConnectors(Wallets(Paypal(Redirect))) let body = PaymentBody.paypalRedirectionBody(~connectors) diff --git a/src/Payments/PaypalSDKHelpers.res b/src/Payments/PaypalSDKHelpers.res index 661ed5358..b35f140c1 100644 --- a/src/Payments/PaypalSDKHelpers.res +++ b/src/Payments/PaypalSDKHelpers.res @@ -30,7 +30,7 @@ let loadPaypalSDK = ( ->then(result => { let result = result->JSON.Decode.bool->Option.getOr(false) if result { - UtilityHooks.useHandlePostMessages(~complete=true, ~empty=true, ~paymentType="paypal") + UtilityHooks.useHandlePostMessages(~complete=true, ~empty=false, ~paymentType="paypal") let paypalWrapper = GooglePayType.getElementById(Utils.document, "paypal-button") paypalWrapper.innerHTML = "" paypal["Buttons"]({