diff --git a/explorer/src/components/SearchBar.tsx b/explorer/src/components/SearchBar.tsx index 3daf31de7a..fe7b0e3b37 100644 --- a/explorer/src/components/SearchBar.tsx +++ b/explorer/src/components/SearchBar.tsx @@ -164,7 +164,8 @@ function buildTokenOptions(search: string, cluster: Cluster) { } } -function buildOptions(search: string, cluster: Cluster) { +function buildOptions(rawSearch: string, cluster: Cluster) { + const search = rawSearch.trim(); if (search.length === 0) return []; const options = [];