diff --git a/client/src/containers/map/index.tsx b/client/src/containers/map/index.tsx index d5ae0bc..81a9817 100644 --- a/client/src/containers/map/index.tsx +++ b/client/src/containers/map/index.tsx @@ -75,7 +75,7 @@ export default function MapContainer() { const bbox = useRecoilValue(bboxAtom); const tmpBbox = useRecoilValue(tmpBboxAtom); - const isFlyingBack = useRecoilValue(isFlyingBackAtom); + // const isFlyingBack = useRecoilValue(isFlyingBackAtom); const layersInteractiveIds = useRecoilValue(layersInteractiveIdsAtom); @@ -84,10 +84,7 @@ export default function MapContainer() { const pathname = usePathname(); - const isHomePage = useMemo( - () => !pathname.includes('stories'), - [pathname, isFlyingBack] - ); + const isHomePage = useMemo(() => !pathname.includes('stories'), [pathname]); console.log('isHomePage', isHomePage);