mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-03-21 18:04:39 -05:00
Fix incorrect score decrement when reopening play-all matches (#2769)
Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
parent
a9dfb0c2df
commit
a1257b7c00
|
|
@ -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]--;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user