From 193d4a2eb5ed8114569ce6ba64c1f9db38752b24 Mon Sep 17 00:00:00 2001 From: Jimmy Hardwick Date: Thu, 12 Sep 2024 14:10:33 +1000 Subject: [PATCH] [NO CHANGELOG][Checkout Widget][CM-822]fix: Connect Reject Issue (#2165) Co-authored-by: Jhonatan Gonzalez --- .../src/widgets/checkout/hooks/useProviderRelay.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/checkout/widgets-lib/src/widgets/checkout/hooks/useProviderRelay.ts b/packages/checkout/widgets-lib/src/widgets/checkout/hooks/useProviderRelay.ts index 1f44c93d28..d870413da2 100644 --- a/packages/checkout/widgets-lib/src/widgets/checkout/hooks/useProviderRelay.ts +++ b/packages/checkout/widgets-lib/src/widgets/checkout/hooks/useProviderRelay.ts @@ -64,11 +64,7 @@ export function useProviderRelay() { eip6963Info: payload.eip6963Info, }); } catch (error: any) { - // Send the error using the postMessageHandler - postMessageHandler.send(PostMessageHandlerEventType.PROVIDER_RELAY, { - response: { id: payload.jsonRpcRequestMessage.id, error: error.message, jsonrpc: '2.0' }, - eip6963Info: payload.eip6963Info, - }); + throw new Error(error); } }, [postMessageHandler],