diff --git a/apps/red-ui/src/app/modules/shared/components/initials-avatar/initials-avatar.component.ts b/apps/red-ui/src/app/modules/shared/components/initials-avatar/initials-avatar.component.ts index 58bbfad9f..0611f623b 100644 --- a/apps/red-ui/src/app/modules/shared/components/initials-avatar/initials-avatar.component.ts +++ b/apps/red-ui/src/app/modules/shared/components/initials-avatar/initials-avatar.component.ts @@ -35,9 +35,10 @@ export class InitialsAvatarComponent implements OnInit, OnChanges { } else { this.user = this._userService.getUserById(this.userId); } - this.displayName = - this._userService.getName(this.user) + - (this.showYou && this._userService.userId === this.userId ? ` (${this._translateService.instant('initials-avatar.you')})` : ''); + this.displayName = this._userService.getName(this.user); + if (this.showYou && this._userService.userId === this.userId) { + this.displayName += ` (${this._translateService.instant('initials-avatar.you')})`; + } this.initials = this._getInitials(); this.colorClass = this._colorClass; } else {