Add user-menu router outlet
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good

This commit is contained in:
Willem Dantuma
2020-09-04 10:10:01 +02:00
parent 78425a621a
commit e682b375e7
3 changed files with 11 additions and 7 deletions

View File

@@ -21,7 +21,7 @@ export class UserMenuComponent implements OnInit {
}
getLetter():string {
return this.user.name ? this.user.name.substr(0,1).toUpperCase():"";
return this.user && this.user.name ? this.user.name.substr(0,1).toUpperCase():"";
}
logout(event:MouseEvent) {