Skip to content

Commit

Permalink
Improvement for local testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Goosly committed Jun 13, 2024
1 parent 85cbe68 commit f05f9d1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
});
}

Expand Down

0 comments on commit f05f9d1

Please sign in to comment.