User component: Change get userinfo with updateUserInfo

This commit is contained in:
Konstantinos Triantafyllou 2022-09-13 10:37:18 +03:00
parent 36e01f50f7
commit a6015b272a
3 changed files with 5 additions and 5 deletions

View File

@ -63,14 +63,14 @@ export class OpenaireUserComponent {
if (typeof document !== 'undefined') {
this.server = false;
}
this.subscriptions.push(this.userManagementsService.getUserInfo(false).subscribe(user => {
this.user = user;
this.userManagementsService.updateUserInfo(() => {
this.user = this.userManagementsService.user;
this.loggedIn = !!this.user;
this.isSubscribed = this.loggedIn && Session.isSubscribedTo('community', this.communityId, this.user);
if (this.isSubscribed) {
this.usercomponent.redirect(this.redirectUrl);
}
}));
});
this.properties = properties;
this.subscriptions.push(this.route.queryParams.subscribe(
params => {

@ -1 +1 @@
Subproject commit 6d84a2eb5888bc20c01095daac136413f68c7eae
Subproject commit 945cee4519a4f5b2c5e53dd5c069d4f038f987e6

@ -1 +1 @@
Subproject commit eb5739ab8271aa71c8e58998ab88c61878f8788d
Subproject commit f085a90973b216b89065848dba864e2d581acc84