diff --git a/src/app/app.component.ts b/src/app/app.component.ts index f74859c..d79e0aa 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -77,10 +77,13 @@ export class AppComponent { } this.apiService.getCompetitions().subscribe(comps => { - if (comps.length === 1 || environment.testMode) { + if (environment.testMode) { + this.handleCompetitionSelected('testMode2024'); + } + if (comps.length === 1) { this.handleCompetitionSelected(comps[0]['id']); } - this.competitionsToChooseFrom = comps.map(c => c['id']); + this.competitionsToChooseFrom = comps.map(comp => comp['id']); }); }