File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 29
29
} from ' ../interfaces'
30
30
31
31
export let walletSelect: WalletSelectFunction
32
+ export let modules: WalletCheckModule [] | undefined
32
33
33
34
const blocknative = getBlocknative ()
34
35
73
74
async function renderModule() {
74
75
checkingModule = true
75
76
76
- let modules = get (app ).checkModules
77
+ let checkModules = modules || get (app ).checkModules
77
78
78
- if (isPromise (modules )) {
79
- modules = await modules
80
- modules .forEach (validateWalletCheckModule )
81
- app .update (store => ({ ... store , checkModules: modules }))
79
+ if (isPromise (checkModules )) {
80
+ checkModules = await checkModules
81
+ checkModules .forEach (validateWalletCheckModule )
82
+ app .update (store => ({ ... store , checkModules }))
82
83
}
83
84
84
85
const currentWallet = get (wallet ).name
85
86
86
87
// loop through and run each module to check if a modal needs to be shown
87
- runModules (modules ).then (
88
+ runModules (checkModules ).then (
88
89
(result : {
89
90
modal: WalletCheckModal | undefined
90
91
module: WalletCheckModule | undefined
198
199
}
199
200
200
201
loadingModal = false
201
- modules .forEach (m => m .reset && m .reset ())
202
202
return resolve ({ modal: undefined , module: undefined })
203
203
}
204
204
)
You can’t perform that action at this time.
0 commit comments