Skip to content

Commit

Permalink
reset challonge manual report
Browse files Browse the repository at this point in the history
  • Loading branch information
jmlee337 committed Feb 22, 2025
1 parent aed0e85 commit 13e5b61
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/common/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export type ChallongeTournament = {
slug: string;
sets: Sets;
state: State;
// can be 'swiss' or 'round robin' among others
// can be 'swiss' or 'round robin' or 'double elimination' among others
tournamentType: string;
};

Expand Down
11 changes: 7 additions & 4 deletions src/renderer/ManualReport.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,17 +58,20 @@ export default function ManualReport({
const [entrant2Dq, setEntrant2Dq] = useState(false);
const [entrant1Win, setEntrant1Win] = useState(false);
const [entrant2Win, setEntrant2Win] = useState(false);

// challonge
const [entrant1Score, setEntrant1Score] = useState(0);
const [entrant2Score, setEntrant2Score] = useState(0);

const resetForm = () => {
setEntrant1Dq(false);
setEntrant2Dq(false);
setEntrant1Win(false);
setEntrant2Win(false);
setEntrant1Score(0);
setEntrant2Score(0);
};

// challonge
const [entrant1Score, setEntrant1Score] = useState(0);
const [entrant2Score, setEntrant2Score] = useState(0);

const [reportError, setReportError] = useState('');
const [reportErrorOpen, setReportErrorOpen] = useState(false);

Expand Down

0 comments on commit 13e5b61

Please sign in to comment.