From f0740997d0817d995a2a9e36361ae57279c1f4d2 Mon Sep 17 00:00:00 2001 From: Nils Pukropp Date: Sat, 21 Feb 2026 02:56:45 +0100 Subject: [PATCH] fix: refine community icon logic to only show when an account is actively shared with others --- frontend/src/pages/Dashboard.tsx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/frontend/src/pages/Dashboard.tsx b/frontend/src/pages/Dashboard.tsx index 293fa51..c71ab04 100644 --- a/frontend/src/pages/Dashboard.tsx +++ b/frontend/src/pages/Dashboard.tsx @@ -414,15 +414,21 @@ const AccountRow: React.FC<{ }; const isBanned = account?.vacBanned || (account?.gameBans && account.gameBans > 0); - const isShared = account?._id.startsWith('shared_'); + + // Refined Shared Logic: + // 1. It was shared WITH you (starts with shared_) + // 2. OR you are the owner but you have shared it with at least one person + const isSharedWithYou = account?._id.startsWith('shared_'); + const hasSharedMembers = (account as any).sharedWith && (account as any).sharedWith.length > 0; + const showCommunityIcon = isSharedWithYou || hasSharedMembers; return ( - {isShared && ( - + {showCommunityIcon && ( + )}