diff --git a/src/components/CCIP/Cards/NetworkCard.tsx b/src/components/CCIP/Cards/NetworkCard.tsx index 34229784a91..a63ca844dbf 100644 --- a/src/components/CCIP/Cards/NetworkCard.tsx +++ b/src/components/CCIP/Cards/NetworkCard.tsx @@ -14,7 +14,7 @@ function NetworkCard({ name, totalLanes, totalTokens, logo }: NetworkCardProps)

{name}

- {totalLanes} lanes | {totalTokens} tokens + {totalLanes} {totalLanes > 1 ? "lanes" : "lane"} | {totalTokens} {totalTokens > 1 ? "tokens" : "token"}

diff --git a/src/components/CCIP/Search/Search.tsx b/src/components/CCIP/Search/Search.tsx index e91aa5edbba..894e7149f1a 100644 --- a/src/components/CCIP/Search/Search.tsx +++ b/src/components/CCIP/Search/Search.tsx @@ -115,7 +115,8 @@ function Search({ chains, tokens, small, environment, lanes }: SearchProps) { {network.name} {!small && ( - {network.totalLanes} lanes | {network.totalTokens} tokens + {network.totalLanes} {network.totalLanes > 1 ? "lanes" : "lane"} | {network.totalTokens}{" "} + {network.totalTokens > 1 ? "tokens" : "token"} )} @@ -133,7 +134,11 @@ function Search({ chains, tokens, small, environment, lanes }: SearchProps) { {token.name} - {!small && {token.totalNetworks} networks} + {!small && ( + + {token.totalNetworks} {token.totalNetworks > 1 ? "networks" : "network"} + + )} ))} @@ -171,7 +176,10 @@ function Search({ chains, tokens, small, environment, lanes }: SearchProps) { {lane.sourceNetwork.name} {">"} {lane.destinationNetwork.name} {!small && ( - {lane?.lane?.supportedTokens ? Object.keys(lane.lane.supportedTokens).length : 0} tokens + {lane?.lane?.supportedTokens ? Object.keys(lane.lane.supportedTokens).length : 0}{" "} + {lane?.lane?.supportedTokens && Object.keys(lane.lane.supportedTokens).length > 1 + ? "tokens" + : "token"} )}