fix: update avatar background color logic based on image source
This commit is contained in:
@@ -223,7 +223,7 @@ export function Avatar({ name, email, contactPhotoUri, size = "md", className }:
|
|||||||
sizeClasses[size],
|
sizeClasses[size],
|
||||||
className
|
className
|
||||||
)}
|
)}
|
||||||
style={{ backgroundColor: getBackgroundColor() }}
|
style={{ backgroundColor: imgSrc ? "#ffffff" : getBackgroundColor() }}
|
||||||
title={name || email}
|
title={name || email}
|
||||||
>
|
>
|
||||||
{imgSrc ? (
|
{imgSrc ? (
|
||||||
|
|||||||
Reference in New Issue
Block a user