fix: double icon on user event type (#15239)

* fix: double icon

* test: add test for user event type
This commit is contained in:
Udit Takkar authored and GitHub committed 2024-05-29 13:23:58 +00:00
1 parent 4cdcc85620
commit d19034c2d5
3 files changed
+14 -2

No files matched your search

@@ -32,7 +32,7 @@ export const EventMembers = ({ schedulingType, users, profile, entity }: EventMe
(profile.name !== users[0].name && schedulingType === SchedulingType.COLLECTIVE);
const orgOrTeamAvatarItem =
isDynamic || (!profile.image && !entity.logoUrl)
isDynamic || (!profile.image && !entity.logoUrl) || !entity.teamSlug
? []
: [
{
@@ -47,6 +47,7 @@ export const EventMembers = ({ schedulingType, users, profile, entity }: EventMe
title: entity.name ?? profile.name ?? "",
},
];
return (
<>
<AvatarGroup