From 74ad19291901a740ad3ebf9620136a337b557fea Mon Sep 17 00:00:00 2001 From: Nikola Stojanovic <68916411+dzonidoo@users.noreply.github.com> Date: Mon, 23 Sep 2024 09:56:52 +0200 Subject: [PATCH] made condition for statusDot color (#2094) --- client/components/Coverages/CoverageIcons.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/components/Coverages/CoverageIcons.tsx b/client/components/Coverages/CoverageIcons.tsx index 08386ef01..222465275 100644 --- a/client/components/Coverages/CoverageIcons.tsx +++ b/client/components/Coverages/CoverageIcons.tsx @@ -74,13 +74,15 @@ export function getAvatarForCoverage( return placeholder; } else { + const statusDotColor = planningUtils.getNewsCoverageStatusDotColor(coverage); + const avatar: Omit = { initials: getUserInitials(user.display_name), imageUrl: user.picture_url, displayName: user.display_name, icon: icon, customContent: getCustomAvatarContent(user), - statusDot: {color: planningUtils.getNewsCoverageStatusDotColor(coverage)}, + statusDot: statusDotColor != null ? {color: statusDotColor} : null, }; return avatar;