fix: closes loader when session proposal is rejected (#417)

Co-authored-by: Gancho Radkov <ganchoradkov@gmail.com>
This commit is contained in:
Gancho Radkov 2024-01-17 14:56:10 +02:00 committed by GitHub
parent 06984232dc
commit 0232654e92
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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();