Skip to content

Commit b6e211c

Browse files
committed
fix: use chain.logo instead of getNetworkIconUrl in NetworkGrid
Testnet chain display names (e.g. 'Ethereum Sepolia') were being normalized to CDN paths that don't exist (e.g. ethereum-sepolia.svg). Mainnet names (e.g. 'Ethereum') happened to match CDN filenames. getAllNetworks already computes the correct logo via getChainIcon, so use chain.logo directly and remove the getNetworkIconUrl call.
1 parent 90d0a85 commit b6e211c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/components/CCIP/Landing/NetworkGrid.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import Card from "../Cards/Card.tsx"
22
import Grid from "./Grid.tsx"
3-
import { getNetworkIconUrl } from "~/config/data/ccip/data.ts"
43
interface NetworkGridProps {
54
networks: {
65
name: string
@@ -25,7 +24,7 @@ function NetworkGrid({ networks, environment }: NetworkGridProps) {
2524
return (
2625
<Card
2726
key={chain.chain}
28-
logo={<img src={getNetworkIconUrl(chain.name)} alt="" loading="lazy" />}
27+
logo={<img src={chain.logo} alt="" loading="lazy" />}
2928
title={chain.name}
3029
subtitle={subtitle}
3130
link={`/ccip/directory/${environment}/chain/${chain.chain}`}

0 commit comments

Comments
 (0)