Skip to content

Commit d9736b8

Browse files
authored
Generic provider is injected always when using a custom list (#743)
* Generic provider is injected when Metamask is detected and already on the wallet list * Set patch package version
1 parent 665a501 commit d9736b8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bnc-onboard",
3-
"version": "1.35.4",
3+
"version": "1.35.4-0.0.1",
44
"description": "Onboard users to web3 by allowing them to select a wallet, get that wallet ready to transact and have access to synced wallet state.",
55
"keywords": [
66
"ethereum",

src/modules/select/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function select(
7575
// This wallet is built into onboard so add the walletName and
7676
// the code below will load it as a wallet module
7777
wallets.unshift({ walletName: detectedWalletName })
78-
} else if (detectedProviderName) {
78+
} else if (!detectedWalletName && detectedProviderName) {
7979
// A provider has been detected but there is not a walletName therefore
8080
// this wallet is not built into onboard so add it as a generic injected wallet
8181
wallets.unshift({ walletName: 'detectedwallet' })

0 commit comments

Comments
 (0)