diff --git a/libs/openchallenges/challenge/src/lib/challenge.component.ts b/libs/openchallenges/challenge/src/lib/challenge.component.ts index d1c14c12d4..db28661452 100644 --- a/libs/openchallenges/challenge/src/lib/challenge.component.ts +++ b/libs/openchallenges/challenge/src/lib/challenge.component.ts @@ -148,7 +148,7 @@ export class ChallengeComponent implements OnInit, OnDestroy { const newPath = path ?? location.pathname; this._location.replaceState(newPath, newParam.toString()); - // switch tab to active tab + // update active tab this.activeTab = this.tabs[activeTabKey]; } } 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 7d4813f1e7..e60ff276be 100644 --- a/libs/openchallenges/org-profile/src/lib/org-profile.component.ts +++ b/libs/openchallenges/org-profile/src/lib/org-profile.component.ts @@ -184,7 +184,7 @@ export class OrgProfileComponent implements OnInit, OnDestroy { const newPath = path ?? location.pathname; this._location.replaceState(newPath, newParam.toString()); - // switch tab to active tab + // update active tab this.activeTab = this.tabs[activeTabKey]; } }