diff --git a/ng2-components/ng2-alfresco-userinfo/src/components/user-info.component.ts b/ng2-components/ng2-alfresco-userinfo/src/components/user-info.component.ts index effd11c5d9..738ff153a3 100644 --- a/ng2-components/ng2-alfresco-userinfo/src/components/user-info.component.ts +++ b/ng2-components/ng2-alfresco-userinfo/src/components/user-info.component.ts @@ -63,7 +63,6 @@ export class UserInfoComponent implements OnInit { if (translate) { translate.addTranslationFolder('ng2-alfresco-userinfo', 'node_modules/ng2-alfresco-userinfo/src'); } - authService.loginSubject.subscribe((response) => { this.getUserInfo(); }); @@ -90,6 +89,9 @@ export class UserInfoComponent implements OnInit { this.getEcmAvatar(); } ); + } else { + this.ecmUser = null; + this.ecmUserImage = null; } } @@ -100,6 +102,9 @@ export class UserInfoComponent implements OnInit { this.bpmUser = res; }); this.bpmUserImage = this.bpmUserService.getCurrentUserProfileImage(); + } else { + this.bpmUser = null; + this.bpmUserImage = null; } }