From 03822992ac1eb2fb930ca2a6298c75df44dfa527 Mon Sep 17 00:00:00 2001
From: "HATEC\\SPVDEV001" <tri.susilo@altama.co.id>
Date: Thu, 25 Jan 2024 15:04:33 +0700
Subject: fixing error page search muncul brand logo nya

---
 src/lib/product/components/ProductSearch.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/lib/product/components/ProductSearch.jsx')

diff --git a/src/lib/product/components/ProductSearch.jsx b/src/lib/product/components/ProductSearch.jsx
index ed4365a8..90e93aa0 100644
--- a/src/lib/product/components/ProductSearch.jsx
+++ b/src/lib/product/components/ProductSearch.jsx
@@ -105,7 +105,7 @@ const ProductSearch = ({
         setIsBrand(null);
       }
     };
-    if (router.pathname.includes('search')) {
+    if (router.pathname.includes('search') && q !== '*') {
       checkIfBrand();
     }
   }, [q]);
-- 
cgit v1.2.3

