diff --git a/pages/search.tsx b/pages/search.tsx index db131c873..17b1fa425 100644 --- a/pages/search.tsx +++ b/pages/search.tsx @@ -111,33 +111,35 @@ export default function Search({
-
- {data ? ( - <> - - Showing {data.products.length} results for " - {q}" - - - There are no products that match "{q}" - - - ) : ( - <> - Searching for: "{q}" - - )} -
+ {q && ( +
+ {data ? ( + <> + + Showing {data.products.length} results for " + {q}" + + + There are no products that match "{q}" + + + ) : ( + <> + Searching for: "{q}" + + )} +
+ )} {data ? (