Skip to content

Commit

Permalink
more typing
Browse files Browse the repository at this point in the history
  • Loading branch information
cskiwi committed Aug 15, 2024
1 parent 408f8b2 commit bde6061
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
PLATFORM_ID,
computed,
effect,
inject
inject,
} from '@angular/core';
import { ReactiveFormsModule } from '@angular/forms';
import { MatButtonModule } from '@angular/material/button';
Expand Down Expand Up @@ -108,8 +108,7 @@ export class DetailEncounterComponent {
}

getGameLabel(game: number) {
const gameType = this.encounterCompetition()?.drawCompetition?.subEventCompetition
?.eventType as 'M' | 'F' | 'MX';
const gameType = this.encounterCompetition()?.drawCompetition?.subEventCompetition?.eventType;

if (!gameType) {
return [];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ export class EditEncounterComponent implements OnInit {
private seoService = inject(SeoService);
private route = inject(ActivatedRoute);
private breadcrumbsService = inject(BreadcrumbService);
private apollo = inject(Apollo);
private platformId = inject<string>(PLATFORM_ID);
private formBuilder = inject(FormBuilder);
private matdialog = inject(MatDialog);
Expand Down Expand Up @@ -146,10 +145,7 @@ export class EditEncounterComponent implements OnInit {
}

getGameLabel(game: number) {
const gameType = this.encounterCompetition.drawCompetition?.subEventCompetition?.eventType as
| 'M'
| 'F'
| 'MX';
const gameType = this.encounterCompetition.drawCompetition?.subEventCompetition?.eventType;

if (!gameType) {
return [];
Expand Down

0 comments on commit bde6061

Please sign in to comment.