Skip to content

Commit cd219f7

Browse files
committed
fix: "1 result" text appearing on no matches
1 parent 769841f commit cd219f7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • apps/frontend/src/app/(content)/search

apps/frontend/src/app/(content)/search/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ const SearchHeader = ({
173173
if (loading) return '';
174174
if (isSearch) {
175175
// TODO: implement this with proper variable substitution for translations
176-
if (totalResults > 1) {
176+
if (totalResults != 1) {
177177
return `${totalResults.toLocaleString('en-UK')} results for "${query}"`;
178178
}
179179
return `1 result for "${query}"`;

0 commit comments

Comments
 (0)