diff options
| author | Miqdad <ahmadmiqdad27@gmail.com> | 2025-05-07 09:53:12 +0700 |
|---|---|---|
| committer | Miqdad <ahmadmiqdad27@gmail.com> | 2025-05-07 09:53:12 +0700 |
| commit | 4ca48d5b2b8da512447d04bb7e6540ea2b76294b (patch) | |
| tree | fb4877917b76e3007cd1124bc2cd2c86df965867 | |
| parent | d48f8943b87178ccc653ae1d334b3780c5a23a31 (diff) | |
<miqdad> merge
| -rw-r--r-- | src-migrate/modules/popup-information/index.tsx | 5 |
1 files changed, 2 insertions, 3 deletions
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 && ( |
