Skip to content

Commit

Permalink
Add tie breakers field to Phase model
Browse files Browse the repository at this point in the history
  • Loading branch information
phrasmotica committed Apr 27, 2024
1 parent d385852 commit 8dcd2ad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/data/Phase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import type { PlayerRecord } from "./PlayerRecord"
import type { Round } from "./Round"
import type { Specification } from "./Specification"
import type { Table } from "./Table"
import type { TieBreakerInfo } from "./TieBreakerInfo"

export interface Phase {
id: string
Expand All @@ -19,4 +20,5 @@ export interface Phase {
fixtureSwaps: FixtureSwap[]
eventLog: PhaseEvent[]
ranking: PlayerRecord[]
tieBreakers: TieBreakerInfo[]
}
2 changes: 2 additions & 0 deletions src/stores/flyer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ export const useFlyerStore = defineStore("flyer", () => {
fixtureSwaps: [],
eventLog: createEventLog(settings.specification.name),
ranking: [],
tieBreakers: [],
}

for (const r of phase.rounds) {
Expand Down Expand Up @@ -129,6 +130,7 @@ export const useFlyerStore = defineStore("flyer", () => {
fixtureSwaps: [],
eventLog: createEventLog(settings.name),
ranking: [],
tieBreakers: [],
}

for (const r of newPhase.rounds) {
Expand Down

0 comments on commit 8dcd2ad

Please sign in to comment.