mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-11 17:27:31 +02:00
Update user list to display names correctly even when first and last names are separate
Fix the display of user names in the user list to properly show first and last names, resolving an issue where names were incorrectly reported as "Nom non renseigné" in production. Replit-Commit-Author: Agent Replit-Commit-Session-Id: a8a78c07-e900-425c-a577-5b4c5894379d Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/a8a78c07-e900-425c-a577-5b4c5894379d/vetH0Gp
This commit is contained in:
1 parent
1e72358c6c
commit
e120b48539
2 files changed
+8
-2
No files matched your search
Binary file not shown.
|
After Width: | Height: | Size: 86 KiB |
@@ -716,13 +716,19 @@ export default function UsersPage() {
|
||||
/>
|
||||
) : (
|
||||
<span className="text-white font-medium">
|
||||
{getInitials(userData.name?.split(' ')[0] || '', userData.name?.split(' ').slice(1).join(' ') || '')}
|
||||
{getInitials(
|
||||
userData.firstName || userData.name?.split(' ')[0] || '',
|
||||
userData.lastName || userData.name?.split(' ').slice(1).join(' ') || ''
|
||||
)}
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
<div>
|
||||
<div className="text-sm font-medium text-gray-900 flex items-center">
|
||||
{userData.name || 'Nom non renseigné'}
|
||||
{(userData.firstName && userData.lastName)
|
||||
? `${userData.firstName} ${userData.lastName}`.trim()
|
||||
: (userData.firstName || userData.lastName || userData.name || 'Nom non renseigné')
|
||||
}
|
||||
{userData.id === user?.id && (
|
||||
<Badge variant="outline" className="ml-2 text-xs">Vous</Badge>
|
||||
)}
|
||||
|
||||
Reference in new issue
Block a user