displayName correctly integrated

This commit is contained in:
Domingo Dirutigliano
2025-07-11 10:54:38 +02:00
committed by Aarnav Tale
parent ad469129bc
commit 27b2831f00
13 changed files with 16 additions and 20 deletions
+2 -2
View File
@@ -107,7 +107,7 @@ export default function Header(data: Props) {
{data.user.picture ? (
<img
src={data.user.picture}
alt={data.user.name}
alt={data.user.name || data.user.displayName}
className="w-8 h-8 rounded-full"
/>
) : (
@@ -131,7 +131,7 @@ export default function Header(data: Props) {
<Menu.Section>
<Menu.Item key="profile" textValue="Profile">
<div className="text-black dark:text-headplane-50">
<p className="font-bold">{data.user.name}</p>
<p className="font-bold">{data.user.name || data.user.displayName}</p>
<p>{data.user.email}</p>
</div>
</Menu.Item>