Skip to content

Commit

Permalink
CR rossy
Browse files Browse the repository at this point in the history
Signed-off-by: pbio <[email protected]>
  • Loading branch information
paulbalaji committed Nov 7, 2024
1 parent fe02628 commit ab70519
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/search/SearchFilterBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ function ChainSelector({

const multiProvider = useMultiProvider();

const chainRawName = value ? multiProvider.getChainName(value) : undefined;
const chainName = chainRawName
? trimToLength(getChainDisplayName(multiProvider, chainRawName, true), 12)
const chainName = value ? multiProvider.getChainName(value) : undefined;
const chainDisplayName = chainName
? trimToLength(getChainDisplayName(multiProvider, chainName, true), 12)
: undefined;

const onClickChain = (c: ChainMetadata) => {
Expand All @@ -95,7 +95,7 @@ function ChainSelector({
)}
onClick={open}
>
<span>{chainName || text} </span>
<span>{chainDisplayName || text} </span>
{!value && (
<ChevronIcon
direction="s"
Expand Down

0 comments on commit ab70519

Please sign in to comment.