fix: fallback to user email when username is unset (#237)

This commit is contained in:
Gabe Cook 2025-06-05 22:06:38 -05:00 committed by GitHub
parent 2f316176c8
commit a298686d6b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 3 deletions

View file

@ -63,7 +63,9 @@ export default function MachineRow({
>
{node.givenName}
</p>
<p className="text-sm opacity-50">{node.user.name}</p>
<p className="text-sm opacity-50">
{node.user.name ?? node.user.email}
</p>
<div className="flex gap-1 flex-wrap mt-1.5">
{mapTagsToComponents(node, uiTags)}
{node.validTags.map((tag) => (