Skip to content

Commit

Permalink
Merge branch 'develop' into fix/i18n_wallets_connected
Browse files Browse the repository at this point in the history
  • Loading branch information
Adamj1232 committed Dec 27, 2024
2 parents 329e5fe + 9db4d8e commit 386c174
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/injected/src/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const isWalletAvailable = (
// For multiple injected providers, check providers array
// example coinbase inj wallet pushes over-ridden wallets
// into a providers array at window.ethereum
return !!provider.providers?.some(provider =>
return Array.isArray(provider.providers) && !!provider.providers?.some(provider =>
checkProviderIdentity({ provider, device })
)
}
Expand Down
2 changes: 1 addition & 1 deletion packages/injected/src/wallets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ const bitget: InjectedWalletModule = {
label: ProviderLabel.Bitget,
injectedNamespace: InjectedNameSpace.Bitget,
checkProviderIdentity: ({ provider }) =>
!!provider && !!provider['ethereum'][ProviderIdentityFlag.Bitget],
!!provider && !!provider['ethereum'] && !!provider['ethereum'][ProviderIdentityFlag.Bitget],
getIcon: async () => (await import('./icons/bitget.js')).default,
getInterface: async () => ({
provider: window.bitkeep && window.bitkeep.ethereum
Expand Down

0 comments on commit 386c174

Please sign in to comment.