Skip to content

Commit c652013

Browse files
committed
fix: 온라인 행사 타입에도 지도 보이는 에러 해결
1 parent c5fdca4 commit c652013

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

src/pages/event/ui/EventDetailsPage.tsx

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { useCreateBookmark, useDeleteBookmark } from '../../../features/bookmark
1818
import { formatDate, formatTime } from '../../../shared/lib/date';
1919
import { useEventDetail } from '../../../entities/event/hook/useEventHook';
2020
import useAuthStore from '../../../app/provider/authStore';
21-
import HomeButton from '../../../../public/assets/bottomBar/HomeIcon.svg'
21+
import HomeButton from '../../../../public/assets/bottomBar/HomeIcon.svg';
2222
const EventDetailsPage = () => {
2323
const navigate = useNavigate();
2424
const [title, setTitle] = useState('');
@@ -115,12 +115,14 @@ const EventDetailsPage = () => {
115115
/>
116116
</div>
117117

118-
{event.result.locationLat !== 0.0 && event.result.locationLng !== 0.0 && (
119-
<>
120-
<h2 className="font-bold text-xl">위치</h2>
121-
<KakaoMap lat={event.result.locationLat} lng={event.result.locationLng} />
122-
</>
123-
)}
118+
{event.result.onlineType !== 'ONLINE' &&
119+
event.result.locationLat !== 0.0 &&
120+
event.result.locationLng !== 0.0 && (
121+
<>
122+
<h2 className="font-bold text-xl">위치</h2>
123+
<KakaoMap lat={event.result.locationLat} lng={event.result.locationLng} />
124+
</>
125+
)}
124126

125127
<OrganizerInfo
126128
name={event.result.hostChannelName}

0 commit comments

Comments
 (0)