= props =>
{ groups.map((group, index) =>
{
return setSelectedGroupId(group.id) } className={ 'profile-groups-item position-relative flex-shrink-0 d-flex align-items-center justify-content-center cursor-pointer' + classNames({ ' active': selectedGroupId === group.id }) }>
- favoriteGroup(group.id) } />
+ { itsMe && favoriteGroup(group.id) } /> }
}) }
diff --git a/src/views/user-profile/views/groups-container/GroupsContainerView.types.ts b/src/views/user-profile/views/groups-container/GroupsContainerView.types.ts
index 0426ca8e..40b273af 100644
--- a/src/views/user-profile/views/groups-container/GroupsContainerView.types.ts
+++ b/src/views/user-profile/views/groups-container/GroupsContainerView.types.ts
@@ -2,6 +2,7 @@ import { GroupDataParser } from '@nitrots/nitro-renderer';
export interface GroupsContainerViewProps
{
+ itsMe: boolean;
groups: GroupDataParser[];
onLeaveGroup: () => void;
}