diff --git a/src/components/Navbar/NavBar.js b/src/components/Navbar/NavBar.js
index 898d741..f75bcdb 100644
--- a/src/components/Navbar/NavBar.js
+++ b/src/components/Navbar/NavBar.js
@@ -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 '';
});
}
@@ -78,7 +78,7 @@ const NavBar = () => {
Calendar
Community
Profile
- {validateUser() ? (
+ {validateUser() !== ""? (