diff --git a/app/features/tournament-bracket/components/MatchActions.tsx b/app/features/tournament-bracket/components/MatchActions.tsx index 1899ede56..768dbd047 100644 --- a/app/features/tournament-bracket/components/MatchActions.tsx +++ b/app/features/tournament-bracket/components/MatchActions.tsx @@ -136,6 +136,7 @@ export function MatchActions({ {!revising && ( point < 10); + const submitButtonDisabled = () => { + if (wouldEndSet && !endConfirmation) return true; + if (lowPoints && !pointConfirmation) return true; + + return false; + }; + return ( {wouldEndSet ? ( setEndConfirmation(e.target.checked)} id={confirmCheckId} data-testid="end-confirmation" @@ -281,11 +293,25 @@ function ReportScoreButtons({ ) : null} + {lowPoints ? ( + + setPointConfirmation(e.target.checked)} + id={pointConfirmCheckId} + /> + + Confirm reporting of low score value ( + {points!.map((p) => `${p}p`).join(" & ")}) + + + ) : null} {wouldEndSet ? "Report & end set" : "Report"}