feat(dashboard): use username instead of email for the generation of the

fallback avatar image
This commit is contained in:
2025-07-28 19:20:05 +02:00
parent 30c2c7afb0
commit f8261b5364
3 changed files with 8 additions and 11 deletions

View File

@@ -268,7 +268,7 @@ export const ProfileForm = () => {
</FormControl>
<Avatar className="default-avatar h-12 w-12 rounded-full border hover:p-px hover:border-primary transition-transform">
<AvatarFallback className="rounded-lg">{getFallbackAvatarInitials(data?.user?.email)}</AvatarFallback>
<AvatarFallback className="rounded-lg">{getFallbackAvatarInitials(data?.user?.name)}</AvatarFallback>
</Avatar>
</FormLabel>
</FormItem>