Browse Source

fix(web): null check

pull/8/head
isra el 2 years ago
parent
commit
b9dfa8cfd8
  1. 2
      web/components/Navbar.tsx

2
web/components/Navbar.tsx

@ -33,7 +33,7 @@ export default function Navbar() {
authService authService
.whoAmI() .whoAmI()
.catch((e) => { .catch((e) => {
if (e.response.status === 401) {
if (e.response?.status === 401) {
dispatch(logout()) dispatch(logout())
} }
}) })

Loading…
Cancel
Save