From b9dfa8cfd88ba180f474e1256f40ab6eab3947b1 Mon Sep 17 00:00:00 2001 From: isra el Date: Sat, 20 Apr 2024 10:34:21 +0300 Subject: [PATCH] fix(web): null check --- web/components/Navbar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) } })