From c964660edab108cf323a5523b26aa3b7e7d3f621 Mon Sep 17 00:00:00 2001 From: Nikita Date: Thu, 25 Dec 2025 08:21:40 -0800 Subject: [PATCH] Update ProfileSidebar to conditionally display avatar or live indicator - Remove default avatar URL fallback - Show user image if available - Display animated red dot when user image is absent and user is live --- .../web/src/components/ProfileSidebar.tsx | 31 +++++++++++-------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/packages/web/src/components/ProfileSidebar.tsx b/packages/web/src/components/ProfileSidebar.tsx index f03d6d1c..9f6efeee 100644 --- a/packages/web/src/components/ProfileSidebar.tsx +++ b/packages/web/src/components/ProfileSidebar.tsx @@ -18,7 +18,6 @@ interface ProfileSidebarProps { export function ProfileSidebar({ user, isLive, viewerCount, children }: ProfileSidebarProps) { const displayName = user.name || user.username - const avatarUrl = user.image || `https://api.dicebear.com/7.x/initials/svg?seed=${user.username}` return (
@@ -26,18 +25,24 @@ export function ProfileSidebar({ user, isLive, viewerCount, children }: ProfileS
{/* Avatar and Live Badge */}
-
- {displayName} - {isLive && ( - - Live - - )} -
+ {user.image ? ( +
+ {displayName} + {isLive && ( + + Live + + )} +
+ ) : isLive ? ( +
+
+
+ ) : null}

{displayName}

@{user.username}