diff --git a/role-verification/role-verification.component.ts b/role-verification/role-verification.component.ts index 554c169c..7351e465 100644 --- a/role-verification/role-verification.component.ts +++ b/role-verification/role-verification.component.ts @@ -61,7 +61,7 @@ import {AlertModal} from "../utils/modal/alert";
- Welcome! You are now a member of {{name}}! + Welcome! You are now a member of the OpenAIRE Monitor Dashboard for the {{name}}! From now on, you will have access to our restricted content.
@@ -176,8 +176,7 @@ export class RoleVerificationComponent implements OnInit, OnDestroy { this.loading = false; this.managerModal.cancel(); this.error = null; - this.subs.push(this.userManagementService.getUserInfo(false).subscribe(user => { - this.user = user; + this.subs.push(this.userManagementService.updateUserInfo(() => { this.router.navigate(['/admin/' + this.verification.entity]); })); }, error => { @@ -191,8 +190,7 @@ export class RoleVerificationComponent implements OnInit, OnDestroy { this.subs.push(this.userRegistryService.verify(this.verification.id, this.code.value, "member").subscribe(() => { this.loading = false; this.error = null; - this.subs.push(this.userManagementService.getUserInfo(false).subscribe(user => { - this.user = user; + this.subs.push(this.userManagementService.updateUserInfo(() => { this.isMember = true; })); }, error => {