diff --git a/components/Layout.tsx b/components/Layout.tsx index 4cbd84c..0bb306b 100644 --- a/components/Layout.tsx +++ b/components/Layout.tsx @@ -83,10 +83,12 @@ export const Layout: React.FC<{ children: React.ReactNode, currentUser: User }> {/* User Profile Mini */}
- User + User
-

{currentUser.name}

-

{currentUser.role === 'super_admin' ? 'Super Admin' : currentUser.role}

+

{currentUser?.name || 'Usuário'}

+

+ {currentUser?.role === 'super_admin' ? 'Super Admin' : (currentUser?.role || 'Agente')} +