Skip to content

Commit

Permalink
fix: logical error with modal closing
Browse files Browse the repository at this point in the history
  • Loading branch information
Cussone committed Nov 1, 2024
1 parent 5e7cef2 commit ff8305d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,16 +200,16 @@ export const connect = async ({
connectorData,
wallet: selectedConnector?.wallet ?? null,
})

modal.$set({ layout: Layout.success })
setTimeout(() => modal.$destroy(), 3000)
} else {
resolve({
connector: selectedConnector,
wallet: null,
connectorData: null,
})
}

modal.$set({ layout: Layout.success })
setTimeout(() => modal.$destroy(), 3000)
} catch (error) {
modal.$set({ layout: Layout.failure })
reject(error)
Expand Down

0 comments on commit ff8305d

Please sign in to comment.