From 3c716674ea897158eef3bea11e0930d4ab4a4e63 Mon Sep 17 00:00:00 2001 From: Aleksandar Cakalic Date: Fri, 1 Nov 2024 13:59:57 +0100 Subject: [PATCH] fix: logical error, destroy modal if `resultType !== "wallet"` --- src/main.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.ts b/src/main.ts index 03743d1..7b12edf 100644 --- a/src/main.ts +++ b/src/main.ts @@ -209,6 +209,7 @@ export const connect = async ({ wallet: null, connectorData: null, }) + modal.$destroy() } } catch (error) { modal.$set({ layout: Layout.failure })