diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-01-31 14:32:38 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-01-31 14:32:38 +0700 |
| commit | 3496025d97140268dc2e899adca994b5b9f343c0 (patch) | |
| tree | 3d8b51fc624b09a7ba46409e9e8a81fbd02da582 /src/pages/shop/search.js | |
| parent | d194dcc23c19a4cf31863b32770f8df77e1f675a (diff) | |
quotation and categories
Diffstat (limited to 'src/pages/shop/search.js')
| -rw-r--r-- | src/pages/shop/search.js | 4 |
1 files changed, 2 insertions, 2 deletions
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 <span className="font-semibold">{q}</span> + produk { q != '*' && (<>untuk pencarian <span className="font-semibold">{q}</span></>) } </> ) : 'Mungkin yang anda cari'} </div> |
