File tree Expand file tree Collapse file tree 3 files changed +9
-1
lines changed
Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -212,7 +212,11 @@ export const connect = async ({
212212 modal . $destroy ( )
213213 }
214214 } catch ( error ) {
215- modal . $set ( { layout : Layout . failure } )
215+ if (
216+ [ Layout . connecting , Layout . qrCode ] . includes ( modal . getLayout ( ) )
217+ ) {
218+ modal . $set ( { layout : Layout . failure } )
219+ }
216220 reject ( error )
217221 }
218222 } ,
Original file line number Diff line number Diff line change @@ -22,4 +22,5 @@ interface ModalProps {
2222interface ModalInstance extends SvelteComponent {
2323 $set ( props : Partial < ModalProps > ) : void
2424 $destroy ( ) : void
25+ getLayout : ( ) => Layout
2526}
Original file line number Diff line number Diff line change 2727 function setLayout(newLayout : Layout ): void {
2828 layout = newLayout
2929 }
30+ export function getLayout() {
31+ return layout
32+ }
3033
3134 export let modalWallets: ModalWallet [] = []
3235 export let selectedWallet: ModalWallet | null = null
You can’t perform that action at this time.
0 commit comments