User component: Update user-info in init.

This commit is contained in:
Konstantinos Triantafyllou 2023-03-22 19:27:50 +02:00
parent ed19051fc0
commit 2b4835bd0d
1 changed files with 2 additions and 2 deletions

View File

@ -43,8 +43,8 @@ export class UserComponent {
this.loginUrl = this.properties.loginUrl;
if (typeof document !== 'undefined') {
this.server = false;
this.userManagementsService.getUserInfo().subscribe( user => {
this.user = user;
this.userManagementsService.updateUserInfo( () => {
this.user = this.userManagementsService.user;
this.loggedIn = !!this.user;
this.errorMessage = "";
this.loading = true;