Skip to content

fix: deduplicate injected connector when EIP-6963 wallet is detected#507

Open
tenderdeve wants to merge 1 commit into
family:mainfrom
tenderdeve:fix/duplicate-injected-wallet
Open

fix: deduplicate injected connector when EIP-6963 wallet is detected#507
tenderdeve wants to merge 1 commit into
family:mainfrom
tenderdeve:fix/duplicate-injected-wallet

Conversation

@tenderdeve
Copy link
Copy Markdown

Summary

  • When a user configures an injected() connector (e.g. Bitget Wallet) and the wallet's browser extension is also installed, both the generic injected connector (id: 'injected') and the EIP-6963 auto-detected connector (id: 'com.bitget.wallet') appear in the modal as duplicates
  • Added a dedup filter that removes the generic injected connector when a richer EIP-6963 connector is already present, following the same pattern used for Coinbase Wallet and MetaMask dedup

File: packages/connectkit/src/wallets/useWallets.tsx

Fixes #430

Test plan

  • Configure an injected connector for a wallet that also has a browser extension
  • Verify only one entry appears in the modal (the EIP-6963 one with proper icon/name)
  • Verify wallets without extensions still appear normally

When a user configures an injected connector (e.g. Bitget Wallet)
and the wallet's browser extension is also installed, both the
generic injected connector and the EIP-6963 auto-detected connector
appear in the modal. Remove the generic injected entry when a
richer EIP-6963 connector for the same wallet is present.

Fixes family#430
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 28, 2026

@tenderdeve is attempting to deploy a commit to the Aave Team on Vercel.

A member of the Team first needs to authorize it.

@tenderdeve tenderdeve marked this pull request as ready for review April 28, 2026 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Duplicate Wallet Entry for Injected Connector

1 participant