diff --git a/pages/search.tsx b/pages/search.tsx
index 2c03ba1fb..3d18adb66 100644
--- a/pages/search.tsx
+++ b/pages/search.tsx
@@ -40,7 +40,10 @@ export default function Search({
const router = useRouter()
const { asPath } = router
const { q, sort } = router.query
- const query = filterQuery({ q, sort })
+ // `q` can be included but because categories and designers can't be searched
+ // in the same way of products, it's better to ignore the search input if one
+ // of those is selected
+ const query = filterQuery({ sort })
const { pathname, category, brand } = useSearchMeta(asPath)
const activeCategory = categories.find(
@@ -76,7 +79,7 @@ export default function Search({
>
@@ -100,7 +103,7 @@ export default function Search({
>
@@ -111,33 +114,50 @@ export default function Search({
-
- {data ? (
- <>
-
- Showing {data.products.length} results for "
- {q}"
-
-
- There are no products that match "{q}"
-
- >
- ) : (
- <>
- Searching for: "{q}"
- >
- )}
-
+ {(q || activeCategory || activeBrand) && (
+
+ {data ? (
+ <>
+
+ Showing {data.products.length} results{' '}
+ {q && (
+ <>
+ for "{q}"
+ >
+ )}
+
+
+ {q ? (
+ <>
+ There are no products that match "{q}"
+ >
+ ) : (
+ <>
+ There are no products that match the selected category &
+ designer
+ >
+ )}
+
+ >
+ ) : q ? (
+ <>
+ Searching for: "{q}"
+ >
+ ) : (
+ <>Searching...>
+ )}
+