Skip to content

Commit

Permalink
forgot one type
Browse files Browse the repository at this point in the history
  • Loading branch information
cskiwi committed Aug 15, 2024
1 parent cd7ac28 commit 408f8b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export class ListEncountersComponent implements OnInit, OnChanges {
return null;
}

const gameType = encounter.drawCompetition?.subEventCompetition?.eventType as 'M' | 'F' | 'MX';
const gameType = encounter.drawCompetition?.subEventCompetition?.eventType;
const gameNumber = game.order ?? 0;

return gameLabel(gameType, gameNumber) as string[];
Expand Down
3 changes: 2 additions & 1 deletion libs/frontend/models/src/models/events/sub-event.model.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { SubEventTypeEnum } from '@badman/utils';
import { EventEntry } from '../entry.model';
import { Game } from '../game.model';
import { RankingGroup } from '../group.model';
Expand All @@ -6,7 +7,7 @@ import { Player } from '../player.model';
export class SubEvent {
id?: string;
name?: string;
eventType?: string;
eventType?: SubEventTypeEnum;
eventId?: string;
level?: number;
maxLevel?: number;
Expand Down

0 comments on commit 408f8b2

Please sign in to comment.