diff --git a/src/components/Navbar/index.tsx b/src/components/Navbar/index.tsx index 529c652..8d33bf6 100644 --- a/src/components/Navbar/index.tsx +++ b/src/components/Navbar/index.tsx @@ -16,7 +16,7 @@ const Navbar = ({ withSidebar }: NavbarProps) => { return ( - +
@@ -37,6 +37,7 @@ const Navbar = ({ withSidebar }: NavbarProps) => { label: 'Logout', action: () => { tokenVar(undefined); + localStorage.removeItem('token'); history.push('/login'); }, avoid: true,