Skip to content

Commit 91bb1dd

Browse files
authored
fix: check provider.providers is array
1 parent a711e0d commit 91bb1dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/injected/src/helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export const isWalletAvailable = (
4040
// For multiple injected providers, check providers array
4141
// example coinbase inj wallet pushes over-ridden wallets
4242
// into a providers array at window.ethereum
43-
return !!provider.providers?.some(provider =>
43+
return Array.isArray(provider.providers) && !!provider.providers?.some(provider =>
4444
checkProviderIdentity({ provider, device })
4545
)
4646
}

0 commit comments

Comments
 (0)