summaryrefslogtreecommitdiff
path: root/src-migrate
diff options
context:
space:
mode:
authorMiqdad <ahmadmiqdad27@gmail.com>2025-05-07 09:53:12 +0700
committerMiqdad <ahmadmiqdad27@gmail.com>2025-05-07 09:53:12 +0700
commit4ca48d5b2b8da512447d04bb7e6540ea2b76294b (patch)
treefb4877917b76e3007cd1124bc2cd2c86df965867 /src-migrate
parentd48f8943b87178ccc653ae1d334b3780c5a23a31 (diff)
<miqdad> merge
Diffstat (limited to 'src-migrate')
-rw-r--r--src-migrate/modules/popup-information/index.tsx5
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 && (