Fixed initials avatar

This commit is contained in:
Adina Țeudan 2021-04-09 00:05:10 +03:00
parent c4a84a4a4d
commit 16fb6e3d9d

View File

@ -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 {