Fix jwt-token

This commit is contained in:
2025-09-13 22:25:51 +02:00
parent 44eecd7673
commit e4d557192d

View File

@@ -36,7 +36,7 @@ const Layout = () => {
// Build navigation based on user permissions
const navigation = React.useMemo(() => {
if (!user) {
if (!user?.role) {
return baseNavigation; // Return base navigation if user not loaded yet
}
@@ -53,7 +53,7 @@ const Layout = () => {
}
return nav;
}, [user?.role]);
}, [user]);
return (
<div className="min-h-screen flex bg-gray-100">