From 0232654e926585369e4dabcc41026d47d740a6c6 Mon Sep 17 00:00:00 2001 From: Gancho Radkov <43912948+ganchoradkov@users.noreply.github.com> Date: Wed, 17 Jan 2024 14:56:10 +0200 Subject: [PATCH] fix: closes loader when session proposal is rejected (#417) Co-authored-by: Gancho Radkov --- advanced/dapps/react-dapp-v2/src/contexts/ClientContext.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/advanced/dapps/react-dapp-v2/src/contexts/ClientContext.tsx b/advanced/dapps/react-dapp-v2/src/contexts/ClientContext.tsx index 216dc61..da8656d 100644 --- a/advanced/dapps/react-dapp-v2/src/contexts/ClientContext.tsx +++ b/advanced/dapps/react-dapp-v2/src/contexts/ClientContext.tsx @@ -183,7 +183,7 @@ export function ClientContextProvider({ toast.error((e as Error).message, { position: "bottom-left", }); - // ignore rejection + throw e; } finally { // close modal in case it was open web3Modal.closeModal();