Skip to content

Commit

Permalink
Merge pull request #183 from swapdisk/fix_182
Browse files Browse the repository at this point in the history
Fix final round award points button
  • Loading branch information
joshzcold authored Jan 28, 2025
2 parents 8875996 + efb0865 commit 4e0fac5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/AdminPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,11 @@ function FinalRoundButtonControls(props) {
className="grow rounded border-4 bg-secondary-300 p-5 text-2xl text-foreground"
id={`finalRoundAnswers${i}SubmitButton`}
onClick={() => {
x.points = x.selection !== -1 ? x.answers[x.selection][1] : 0;
x.points = x.selection !== 0 ? x.answers[x.selection - 1][1] : 0;
props.setGame((prv) => ({ ...prv }));
props.send({ action: "data", data: props.game });
props.send({
action: x.selection !== -1 ? "final_submit" : "mistake",
action: x.selection !== 0 ? "final_submit" : "mistake",
});
}}
>
Expand Down

0 comments on commit 4e0fac5

Please sign in to comment.