mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-08-16 23:59:30 -05:00
Fix incorrect score decrement when reopening play-all matches (#2769)
Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -493,7 +493,7 @@ export const action: ActionFunction = async ({ params, request }) => {
|
||||
invariant(scoreOne !== scoreTwo, "Scores are equal");
|
||||
invariant(lastResult, "Last result is missing");
|
||||
|
||||
if (scoreOne > scoreTwo) {
|
||||
if (lastResult.winnerTeamId === match.opponentOne?.id) {
|
||||
scores[0]--;
|
||||
} else {
|
||||
scores[1]--;
|
||||
|
||||
Reference in New Issue
Block a user