From 8274959c5044110dd6b4f40dbf3c2925c79b8f22 Mon Sep 17 00:00:00 2001 From: Dennis Antela Martinez Date: Fri, 15 Apr 2022 22:58:50 -0700 Subject: [PATCH] limit token options appended to search options object (#24410) --- explorer/src/components/SearchBar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/explorer/src/components/SearchBar.tsx b/explorer/src/components/SearchBar.tsx index e8cce1bdb2..878cb7ba5a 100644 --- a/explorer/src/components/SearchBar.tsx +++ b/explorer/src/components/SearchBar.tsx @@ -187,7 +187,7 @@ function buildTokenOptions( if (matchedTokens.length > 0) { return { label: "Tokens", - options: matchedTokens.map(([id, details]) => ({ + options: matchedTokens.slice(0, 10).map(([id, details]) => ({ label: details.name, value: [details.name, details.symbol, id], pathname: "/address/" + id,