From 1b26e7d792eb843d4f038c81cdb1cf48551322a2 Mon Sep 17 00:00:00 2001 From: Rongrong Chai Date: Sat, 4 Nov 2023 00:15:58 +0000 Subject: [PATCH] rename var to singular --- .../openchallenges/challenge/src/lib/challenge.component.ts | 6 +++--- .../org-profile/src/lib/org-profile.component.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) 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(