From 543c9460ecccddb41b253b591e143a04601b5d2c Mon Sep 17 00:00:00 2001 From: vsrivatsa-juspay Date: Mon, 20 May 2024 17:28:16 +0530 Subject: [PATCH] feat: isolate paymentElementCreate m essage from preMountLoader promise --- src/orca-loader/Elements.res | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/orca-loader/Elements.res b/src/orca-loader/Elements.res index 6c7c3a1c9..a6c288022 100644 --- a/src/orca-loader/Elements.res +++ b/src/orca-loader/Elements.res @@ -1038,10 +1038,10 @@ let make = ( fetchCustomerPaymentMethods(mountedIframeRef, false, componentType) } fetchSessionTokens(mountedIframeRef) - mountedIframeRef->Window.iframePostMessage(message) resolve() }) ->ignore + mountedIframeRef->Window.iframePostMessage(message) } let paymentElement = LoaderPaymentElement.make(