fix: update avatar background color logic based on image source

This commit is contained in:
Linus Rath
2026-03-16 09:50:50 +01:00
parent a9a8710909
commit 8d0c525e68
+1 -1
View File
@@ -223,7 +223,7 @@ export function Avatar({ name, email, contactPhotoUri, size = "md", className }:
sizeClasses[size],
className
)}
style={{ backgroundColor: getBackgroundColor() }}
style={{ backgroundColor: imgSrc ? "#ffffff" : getBackgroundColor() }}
title={name || email}
>
{imgSrc ? (