diff --git a/frontend/src/app/core/services/utilities/enum-utils.service.ts b/frontend/src/app/core/services/utilities/enum-utils.service.ts index 342b234d0..611e1106e 100644 --- a/frontend/src/app/core/services/utilities/enum-utils.service.ts +++ b/frontend/src/app/core/services/utilities/enum-utils.service.ts @@ -234,7 +234,11 @@ export class EnumUtils { } } - toPlanUserRolesString(roles: PlanUserRole[]): string { return roles.map(x => this.toPlanUserRoleString(x)).join(', ') } + toPlanUserRolesString(roles: PlanUserRole[]): string { + const distinctRoles =[...new Set(roles)] + return distinctRoles?.map(x => this.toPlanUserRoleString(x)).join(', ') + } + toPlanUserRoleString(role: PlanUserRole): string { switch (role) { case PlanUserRole.Owner: return this.language.instant('TYPES.PLAN-USER-ROLE.OWNER');