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 50c2268 commit cc7d33d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/Navbar/NavBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ const NavBar = () => {
await apiClient.get('user/validate')
.then((response) => {
console.log(response);
return true;
return response;
})
.catch((error) => {

console.error('Error al validar:', error);
return false;
return '';
});
}

Expand Down Expand Up @@ -78,7 +78,7 @@ const NavBar = () => {
<Nav.Link className={selectedLink === 'Calendar' ? 'selected' : ''} href="/Calendar">Calendar</Nav.Link>
<Nav.Link className={selectedLink === 'Community' ? 'selected' : ''} href="/Community">Community</Nav.Link>
<Nav.Link className={selectedLink === 'Profile' ? 'selected' : ''} href="/Profile">Profile</Nav.Link>
{validateUser() ? (
{validateUser() !== ""? (
<button
type="button" className="btn-sample"
onClick={(e) => {
Expand Down

0 comments on commit cc7d33d

Please sign in to comment.