From 8d0c525e68212da432a281e30e332ee40fea914f Mon Sep 17 00:00:00 2001 From: Linus Rath Date: Mon, 16 Mar 2026 09:50:50 +0100 Subject: [PATCH] fix: update avatar background color logic based on image source --- components/ui/avatar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/ui/avatar.tsx b/components/ui/avatar.tsx index d0c97963..cdc69d18 100644 --- a/components/ui/avatar.tsx +++ b/components/ui/avatar.tsx @@ -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 ? (