diff --git a/apps/web/src/components/CommandPallette.tsx b/apps/web/src/components/CommandPallette.tsx index c794ee42..28cbd943 100644 --- a/apps/web/src/components/CommandPallette.tsx +++ b/apps/web/src/components/CommandPallette.tsx @@ -74,7 +74,7 @@ export default function CommandPallette({ ? [] : ((searchResults ?? []) as SearchResult[]); - const hasSearched = Boolean(debouncedQuery.trim().length > 0 && isFetched); + const hasSearched = Boolean(debouncedQuery.trim().length > 0); return ( )} - {hasSearched && !isLoading && results.length === 0 && ( -
- {t`No results found for "${query}".`} -
- )} + {hasSearched && + !isLoading && + searchResults !== undefined && + results.length === 0 && ( +
+ {t`No results found for "${debouncedQuery}".`} +
+ )}