Skip to content

Commit

Permalink
Bug en desconectar
Browse files Browse the repository at this point in the history
  • Loading branch information
CANCI0 committed Apr 26, 2024
1 parent 5d9e6fa commit c7054f8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions webapp/src/components/Nav/Nav.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ const Nav = () => {
const handleLogout = () => { // NOSONAR
if(process.env.NODE_ENV !== 'test'){
localStorage.removeItem("username");
localStorage.removeItem("token");
}
navigate("/login");
};
Expand Down

0 comments on commit c7054f8

Please sign in to comment.