Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

🐛 Handle data uri as user avatar (#1621)

Luke Vella3e4b0f8a3d8f
diff --git a/apps/web/src/components/optimized-avatar-image.tsx b/apps/web/src/components/optimized-avatar-image.tsx
index 2a72573bb..137edf800 100644
--- a/apps/web/src/components/optimized-avatar-image.tsx
+++ b/apps/web/src/components/optimized-avatar-image.tsx
@@ -30,7 +30,7 @@ export function OptimizedAvatarImage({
style={{ width: sizeToWidth[size], height: sizeToWidth[size] }}
>
{src ? (
- src.startsWith("https") ? (
+ src.startsWith("https") || src.startsWith("data:") ? (
<AvatarImage src={src} alt={name} />
) : (
<Image