diff --git a/libs/openchallenges/challenge/src/lib/challenge.component.ts b/libs/openchallenges/challenge/src/lib/challenge.component.ts index db28661452..8b25e33a02 100644 --- a/libs/openchallenges/challenge/src/lib/challenge.component.ts +++ b/libs/openchallenges/challenge/src/lib/challenge.component.ts @@ -70,7 +70,7 @@ export class ChallengeComponent implements OnInit, OnDestroy { challengeAvatar!: Avatar; tabs = CHALLENGE_TABS; activeTab!: Tab; - private subscriptions = new Subscription(); + private subscription = new Subscription(); constructor( private activatedRoute: ActivatedRoute, @@ -132,11 +132,11 @@ export class ChallengeComponent implements OnInit, OnDestroy { this.updateTab(activeTabKey, newPath); }); - this.subscriptions.add(combineSub); + this.subscription.add(combineSub); } ngOnDestroy(): void { - this.subscriptions.unsubscribe(); + this.subscription.unsubscribe(); } updateTab(activeTabKey: string, path?: string) { diff --git a/libs/openchallenges/org-profile/src/lib/org-profile.component.ts b/libs/openchallenges/org-profile/src/lib/org-profile.component.ts index e60ff276be..94eb607a8f 100644 --- a/libs/openchallenges/org-profile/src/lib/org-profile.component.ts +++ b/libs/openchallenges/org-profile/src/lib/org-profile.component.ts @@ -73,7 +73,7 @@ export class OrgProfileComponent implements OnInit, OnDestroy { loggedIn = true; tabs = ORG_PROFILE_TABS; activeTab!: Tab; - private subscriptions = new Subscription(); + private subscription = new Subscription(); constructor( private activatedRoute: ActivatedRoute, @@ -148,11 +148,11 @@ export class OrgProfileComponent implements OnInit, OnDestroy { this.updateTab(activeTabKey); // add active param if any }); - this.subscriptions.add(combineSub); + this.subscription.add(combineSub); } ngOnDestroy(): void { - this.subscriptions.unsubscribe(); + this.subscription.unsubscribe(); } private getOrganizationImageUrl(