diff --git a/app/_common/nav/index.tsx b/app/_common/nav/index.tsx index 02ab272..8aa8b5c 100644 --- a/app/_common/nav/index.tsx +++ b/app/_common/nav/index.tsx @@ -9,7 +9,7 @@ import { useRouter } from 'next/navigation' //TODO: 사용자 프로필 이미지 가져오기 function Nav() { const router = useRouter() - const accessToken = localStorage.getItem('accessToken') + const accessToken = localStorage?.getItem('accessToken') const handleLogout = () => { localStorage.removeItem('accessToken')