Skip to content

Commit

Permalink
rename var to singular
Browse files Browse the repository at this point in the history
  • Loading branch information
rrchai committed Nov 4, 2023
1 parent d693a81 commit 1b26e7d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions libs/openchallenges/challenge/src/lib/challenge.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 1b26e7d

Please sign in to comment.