diff --git a/projects/common/src/fm/components/user-menu/user-menu.component.ts b/projects/common/src/fm/components/user-menu/user-menu.component.ts index 7e279d5..2e9adb5 100644 --- a/projects/common/src/fm/components/user-menu/user-menu.component.ts +++ b/projects/common/src/fm/components/user-menu/user-menu.component.ts @@ -21,7 +21,10 @@ export class UserMenuComponent implements OnInit { } getLetter():string { - return this.user && this.user.name ? this.user.name.substr(0,1).toUpperCase():""; + if (this.user && this.user.firstName && this.user.lastName) + return this.user.firstName.substr(0,1).toUpperCase() + + this.user.lastName.substr(0,1).toUpperCase(); + return this.user && this.user.name ? this.user.name.substr(0,1).toUpperCase():""; } logout(event:MouseEvent) {