fix(site): only show search placeholder if there aren't any results

This commit is contained in:
Karsa
2025-12-10 08:50:17 +01:00
parent 83ef8fc98d
commit 0775d8647e

View File

@@ -29,7 +29,7 @@ export default function useSearchPlaceholder(
} }
} }
state.value = { state.value = {
isNoResults: query in BRAND_STOPWORDS || (searchResults.length === 0 && query !== ''), isNoResults: query in BRAND_STOPWORDS && searchResults.length === 0 && query !== '',
isBrand: query in BRAND_STOPWORDS, isBrand: query in BRAND_STOPWORDS,
query: BRAND_STOPWORDS[query] ?? query, query: BRAND_STOPWORDS[query] ?? query,
}; };