Skip to content

Commit

Permalink
improvement/search by coingeckoid (#2820)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielisaacgeslin authored Oct 10, 2024
1 parent f5b5bab commit 943645e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,9 @@ const TokenList = (props: Props) => {

const queryLC = query.toLowerCase();

const symbolMatch = token.symbol?.toLowerCase().includes(queryLC);
const symbolMatch = [token.symbol, token.coinGeckoId].some((criteria) =>
criteria?.toLowerCase()?.includes?.(queryLC),
);
if (symbolMatch) return true;

const displayNameMatch = getDisplayName(token, chain)
Expand Down

0 comments on commit 943645e

Please sign in to comment.