Skip to content

Commit f9a255c

Browse files
author
Aleksandar Cakalic
committed
fix: do not throw in UI handled cases
1 parent 51996e8 commit f9a255c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,9 @@ export const connect = async ({
213213
[Layout.connecting, Layout.qrCode].includes(modal.getLayout())
214214
) {
215215
modal.$set({ layout: Layout.failure })
216+
} else {
217+
reject(error)
216218
}
217-
reject(error)
218219
}
219220
},
220221
theme: modalTheme === "system" ? null : (modalTheme ?? null),

0 commit comments

Comments
 (0)