diff --git a/packages/frontend/src/mobile-containers/SuperfeedContainer.tsx b/packages/frontend/src/mobile-containers/SuperfeedContainer.tsx index a9c1b43b..53fdd46d 100644 --- a/packages/frontend/src/mobile-containers/SuperfeedContainer.tsx +++ b/packages/frontend/src/mobile-containers/SuperfeedContainer.tsx @@ -259,10 +259,19 @@ const SuperfeedContainer: FC<{ } }, [tagsFromSearch, setSearchState]); - const keywordOptions = useMemo( - () => groupedKeywordsAsOptions(keywordResults), - [keywordResults] - ); + /** + * It's safe to check only coins and chains since the results would mostly be coins and chains + */ + const hasSufficientResults = + (keywordResults?.[ESupportedFilters.Coins] ?? + keywordResults?.[ESupportedFilters.Chains]) !== undefined; + + const keywordOptions = useMemo(() => { + if (keywordResults !== undefined && hasSufficientResults) { + return groupedKeywordsAsOptions(keywordResults); + } + return []; + }, [keywordResults, hasSufficientResults]); const initialSearchValues = useMemo(() => { if (!tagsFromSearch) return undefined;