summaryrefslogtreecommitdiff
path: root/src-migrate/modules/popup-information
diff options
context:
space:
mode:
Diffstat (limited to 'src-migrate/modules/popup-information')
-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 && (