Skip to content

Commit

Permalink
Don't show unsupported chains in UI
Browse files Browse the repository at this point in the history
  • Loading branch information
kuzdogan committed Jun 22, 2023
1 parent f7c8bc1 commit 941886b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/src/components/ChainSelect/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,12 @@ export default function ChainSelect({

let filteredChains;
if (availableChains) {
// Explicitly define which chains to show, like in Etherscan chains
filteredChains = sourcifyChains.filter((chain) =>
availableChains.includes(chain.chainId)
);
} else {
filteredChains = sourcifyChains;
filteredChains = sourcifyChains.filter((chain) => chain.supported);
}

return (
Expand Down

0 comments on commit 941886b

Please sign in to comment.