diff --git a/web/components/Navbar.tsx b/web/components/Navbar.tsx index ef4be3b..c9c99f9 100644 --- a/web/components/Navbar.tsx +++ b/web/components/Navbar.tsx @@ -33,7 +33,7 @@ export default function Navbar() { authService .whoAmI() .catch((e) => { - if (e.response.status === 401) { + if (e.response?.status === 401) { dispatch(logout()) } })