From 07817bbdc1f1ae29c848e5dfdb3ac5b140f48cc4 Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Wed, 10 May 2023 11:40:53 +0700
Subject: Bug fixing cart badge, class attribute, whatsapp url

---
 src/lib/product/components/ProductSearch.jsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(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 cc85589d..30722c82 100644
--- a/src/lib/product/components/ProductSearch.jsx
+++ b/src/lib/product/components/ProductSearch.jsx
@@ -248,9 +248,9 @@ const ProductSearch = ({ query, prefixUrl, defaultBrand = null }) => {
                   <span>
                     Barang yang anda cari tidak ada?{' '}
                     <a
-                      href={whatsappUrl('productSearch', {
+                      href={query?.q ? whatsappUrl('productSearch', {
                         name: query.q
-                      })}
+                      }) : whatsappUrl()}
                       className='text-danger-500'
                     >
                       Hubungi Kami
-- 
cgit v1.2.3

