From 87064761b552ce54cf28fe705bd1648f7fe21e21 Mon Sep 17 00:00:00 2001 From: Giuseppe Digilio Date: Thu, 26 May 2022 16:36:03 +0200 Subject: [PATCH] [CST-5307] fix issue with unsubscribed subscription --- .../profile-page-researcher-form.component.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/profile-page/profile-page-researcher-form/profile-page-researcher-form.component.ts b/src/app/profile-page/profile-page-researcher-form/profile-page-researcher-form.component.ts index 1e8b5fc432..f7662e0522 100644 --- a/src/app/profile-page/profile-page-researcher-form/profile-page-researcher-form.component.ts +++ b/src/app/profile-page/profile-page-researcher-form/profile-page-researcher-form.component.ts @@ -80,6 +80,7 @@ export class ProfilePageResearcherFormComponent implements OnInit { this.processingCreate$.next(true); this.authService.getAuthenticatedUserFromStore().pipe( + take(1), switchMap((currentUser) => this.profileClaimService.hasProfilesToSuggest(currentUser))) .subscribe((hasProfilesToSuggest) => {