Skip to content

Commit

Permalink
Update NavBar.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Naetffy authored May 11, 2024
1 parent c2a42b8 commit 50c2268
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Navbar/NavBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const NavBar = () => {

const handleLogout = async () => {
try {
await apiClient.get('user/validate')
await apiClient.post('login/logout')
.then((response) => {
console.log(response);
// Elimina la cookie de authToken
Expand Down Expand Up @@ -111,4 +111,4 @@ const NavBar = () => {
);
}

export default NavBar;
export default NavBar;

0 comments on commit 50c2268

Please sign in to comment.