From a20fd43f0cafe86444605c3bb8f2a998e1b9dbe6 Mon Sep 17 00:00:00 2001
From: it-fixcomart <it@fixcomart.co.id>
Date: Mon, 19 Aug 2024 11:03:58 +0700
Subject: <iman> update link lihat semua non display voucher

---
 src/lib/flashSale/components/FlashSaleNonDisplay.jsx | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

(limited to 'src/lib/flashSale/components/FlashSaleNonDisplay.jsx')

diff --git a/src/lib/flashSale/components/FlashSaleNonDisplay.jsx b/src/lib/flashSale/components/FlashSaleNonDisplay.jsx
index 0068c98d..6e379500 100644
--- a/src/lib/flashSale/components/FlashSaleNonDisplay.jsx
+++ b/src/lib/flashSale/components/FlashSaleNonDisplay.jsx
@@ -13,21 +13,19 @@ import { useRouter } from 'next/router'
 const FlashSaleNonDisplay = () => {
   const [flashSales, setFlashSales] = useState(null);
   const [isLoading, setIsLoading] = useState(true);
-  const [pencarian, setPencarian] = useState('');
   const router = useRouter()
 
   useEffect(() => {
     const loadFlashSales = async () => {
       const dataFlashSales = await flashSaleApi();
       setFlashSales(dataFlashSales);
-      setPencarian(`fq=-flashsale_id_i:${dataFlashSales[0]?.pricelistId}&fq=flashsale_price_f:[1 TO *]&orderBy=flashsale-discount-desc`)
       setIsLoading(false);
     };
     loadFlashSales();
   }, []);
 
   const handleSubmit = () => {
-    router.push(`/shop/search?${pencarian}`)
+    router.push(`/shop/search?penawaran=${flashSales[0]?.pricelistId}`)
   }
 
   if (isLoading) {
-- 
cgit v1.2.3

