Skip to content

Commit

Permalink
Remove double metamask option (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
gpxl-dev authored Oct 5, 2023
1 parent 8538c96 commit 976812d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/features/chain-connection/WalletConnectionModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,12 @@ const WalletConnectionModal = ({
<div className="color-white flex w-[360px] flex-col bg-gray-900 font-bold">
<div className="flex flex-col gap-2">
{connectors
.filter((connector) => connector.ready)
.filter(
(connector) =>
connector.ready &&
// Don't show inject if it's MetaMask (we're already showing it)
!(connector.id === "injected" && connector.name === "MetaMask"),
)
.map((connector: Connector) => {
const isInjected = connector.id === "injected";
return (
Expand Down

0 comments on commit 976812d

Please sign in to comment.