diff --git a/webapp/src/components/Nav/Nav.js b/webapp/src/components/Nav/Nav.js index 4606ff8a..3a14fb6c 100644 --- a/webapp/src/components/Nav/Nav.js +++ b/webapp/src/components/Nav/Nav.js @@ -60,6 +60,7 @@ const Nav = () => { const handleLogout = () => { // NOSONAR if(process.env.NODE_ENV !== 'test'){ localStorage.removeItem("username"); + localStorage.removeItem("token"); } navigate("/login"); };