From c7054f88a256250a844b05b1477db915ec0fa942 Mon Sep 17 00:00:00 2001 From: CANCI0 Date: Fri, 26 Apr 2024 19:05:51 +0200 Subject: [PATCH] Bug en desconectar --- webapp/src/components/Nav/Nav.js | 1 + 1 file changed, 1 insertion(+) 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"); };