summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/product/components/ProductSearch.jsx6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/product/components/ProductSearch.jsx b/src/lib/product/components/ProductSearch.jsx
index e2b961f1..ed4365a8 100644
--- a/src/lib/product/components/ProductSearch.jsx
+++ b/src/lib/product/components/ProductSearch.jsx
@@ -253,12 +253,14 @@ const ProductSearch = ({
router.push(`${prefixUrl}?${params}`);
};
+ const isNotReadyStockPage = router.asPath !== '/shop/search?orderBy=stock';
+
return (
<>
<MobileView>
{productSearch.isLoading && <ProductSearchSkeleton />}
<div className='p-4 pt-0'>
- {isBrand && isBrand.logo && (
+ {isNotReadyStockPage && isBrand && isBrand.logo && (
<div className='mb-3'>
<h1 className='mb-2 font-semibold text-h-sm'>
Brand Pencarian {q}
@@ -403,7 +405,7 @@ const ProductSearch = ({
</div>
)}
- {isBrand && isBrand.logo && (
+ {isNotReadyStockPage && isBrand && isBrand.logo && (
<div className='mb-3'>
<h1 className='text-2xl mb-2 font-semibold'>
Brand Pencarian {q}