From 4ca48d5b2b8da512447d04bb7e6540ea2b76294b Mon Sep 17 00:00:00 2001
From: Miqdad <ahmadmiqdad27@gmail.com>
Date: Wed, 7 May 2025 09:53:12 +0700
Subject: <miqdad> merge

---
 src-migrate/modules/popup-information/index.tsx | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

(limited to 'src-migrate/modules/popup-information/index.tsx')

diff --git a/src-migrate/modules/popup-information/index.tsx b/src-migrate/modules/popup-information/index.tsx
index 68e0805b..cae50abf 100644
--- a/src-migrate/modules/popup-information/index.tsx
+++ b/src-migrate/modules/popup-information/index.tsx
@@ -10,7 +10,6 @@ import dynamic from 'next/dynamic';
 const PagePopupInformation = () => {
   const router = useRouter();
   const isHomePage = router.pathname === '/';
-  const isProductDetail = router.pathname.includes('/shop/product/');
   const auth = getAuth();
   const [active, setActive] = useState<boolean>(false);
   const [data, setData] = useState<any>(null);
@@ -26,11 +25,11 @@ const PagePopupInformation = () => {
       setLoading(false);
     };
 
-    if ((isHomePage || isProductDetail) && !auth) {
+    if (isHomePage && !auth) {
       setActive(true);
       getData();
     }
-  }, [isHomePage, isProductDetail, auth]);
+  }, [isHomePage, auth]);
   return (
     <div className='group'>
       {data && !loading && (
-- 
cgit v1.2.3

