We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7d9fad commit 4dcef61Copy full SHA for 4dcef61
src/modules/select/index.ts
@@ -24,6 +24,10 @@ function select(
24
const { walletName, ...initParams } = wallet
25
const module = getModule(walletName)
26
27
+ if (!module) {
28
+ throw new Error(`${walletName} is not a valid walletName.`)
29
+ }
30
+
31
return (
32
module &&
33
module.then((m: any) => m.default({ ...initParams, networkId }))
0 commit comments