Skip to content

Commit

Permalink
[NO CHANGELOG][Checkout Widget][CM-822]fix: Connect Reject Issue (#2165)
Browse files Browse the repository at this point in the history
Co-authored-by: Jhonatan Gonzalez <[email protected]>
  • Loading branch information
jwhardwick and jhesgodi authored Sep 12, 2024
1 parent d63561c commit 193d4a2
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit 193d4a2

Please sign in to comment.