Skip to content

Commit

Permalink
add bestOf to context.json #20
Browse files Browse the repository at this point in the history
  • Loading branch information
jmlee337 committed Mar 31, 2024
1 parent 720f7be commit b03605e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/common/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ export type Context = {
};
set: {
id: number;
bestOf: number;
fullRoundText: string;
round: number;
scores: ContextScore[];
Expand Down
1 change: 1 addition & 0 deletions src/renderer/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1035,6 +1035,7 @@ function Hello() {
},
set: {
id: selectedSet.id,
bestOf: Math.max(gameScores[0], gameScores[1]) * 2 - 1,
fullRoundText: selectedSet.fullRoundText,
round: selectedSet.round,
scores,
Expand Down

0 comments on commit b03605e

Please sign in to comment.