diff --git a/src/main.ts b/src/main.ts index 5350526..03743d1 100644 --- a/src/main.ts +++ b/src/main.ts @@ -200,6 +200,9 @@ export const connect = async ({ connectorData, wallet: selectedConnector?.wallet ?? null, }) + + modal.$set({ layout: Layout.success }) + setTimeout(() => modal.$destroy(), 3000) } else { resolve({ connector: selectedConnector, @@ -207,9 +210,6 @@ export const connect = async ({ connectorData: null, }) } - - modal.$set({ layout: Layout.success }) - setTimeout(() => modal.$destroy(), 3000) } catch (error) { modal.$set({ layout: Layout.failure }) reject(error)