From 3496025d97140268dc2e899adca994b5b9f343c0 Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Tue, 31 Jan 2023 14:32:38 +0700 Subject: quotation and categories --- src/pages/shop/search.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/pages/shop/search.js') diff --git a/src/pages/shop/search.js b/src/pages/shop/search.js index 2521c7a2..4152bd43 100644 --- a/src/pages/shop/search.js +++ b/src/pages/shop/search.js @@ -10,7 +10,7 @@ import Footer from "@/components/layouts/Footer"; export async function getServerSideProps(context) { const { - q, + q = '*', page = 1, brand = '', category = '', @@ -100,7 +100,7 @@ export default function ShopSearch({ ) : ''} {searchResults.response.numFound} -  produk untuk pencarian {q} +  produk { q != '*' && (<>untuk pencarian {q}) } ) : 'Mungkin yang anda cari'} -- cgit v1.2.3