diff --git a/src/app/place/page.jsx b/src/app/place/page.jsx index 3b1c22b..764c198 100644 --- a/src/app/place/page.jsx +++ b/src/app/place/page.jsx @@ -36,16 +36,16 @@ const PlacePage = () => { navigator.geolocation.getCurrentPosition( (position) => { const { latitude, longitude } = position.coords; - router.push(`/place/placesearch?lat=${latitude}&lng=${longitude}`); // lat, lng 값을 URL로 전달 + router.push(`/place/placesearch?lat=${latitude}&lng=${longitude}`); }, () => { alert("현재 위치를 가져올 수 없습니다."); - router.push(`/place/placesearch`); // 위치를 가져오지 못했을 경우 기본 경로로 이동 + router.push(`/place/placesearch`); } ); } else { alert("Geolocation을 지원하지 않는 브라우저입니다."); - router.push(`/place/placesearch`); // Geolocation이 없을 경우 기본 경로로 이동 + router.push(`/place/placesearch`); } };