Skip to content

Commit

Permalink
made condition for statusDot color (#2094)
Browse files Browse the repository at this point in the history
  • Loading branch information
dzonidoo authored Sep 23, 2024
1 parent ed1c8cf commit 74ad192
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/components/Coverages/CoverageIcons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,15 @@ export function getAvatarForCoverage(

return placeholder;
} else {
const statusDotColor = planningUtils.getNewsCoverageStatusDotColor(coverage);

const avatar: Omit<IPropsAvatar, 'size'> = {
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;
Expand Down

0 comments on commit 74ad192

Please sign in to comment.