diff --git a/app/features/tournament-bracket/core/engine/propagation/helpers.ts b/app/features/tournament-bracket/core/engine/propagation/helpers.ts index e81368887..9c8faf994 100644 --- a/app/features/tournament-bracket/core/engine/propagation/helpers.ts +++ b/app/features/tournament-bracket/core/engine/propagation/helpers.ts @@ -74,7 +74,7 @@ export function setMatchResults( } if (currentlyCompleted) { - resetMatchResults(stored); + clearWinner(stored); return true; } @@ -82,11 +82,11 @@ export function setMatchResults( } /** - * Resets the results of a match. + * Clears the winner of a match, marking it as not completed. * * @param stored A reference to what will be updated in the storage. */ -export function resetMatchResults(stored: MatchResults): void { +export function clearWinner(stored: MatchResults): void { stored.winnerSide = null; } diff --git a/app/features/tournament-bracket/core/engine/propagation/reset-result.ts b/app/features/tournament-bracket/core/engine/propagation/reset-result.ts index a8fca3666..27909830d 100644 --- a/app/features/tournament-bracket/core/engine/propagation/reset-result.ts +++ b/app/features/tournament-bracket/core/engine/propagation/reset-result.ts @@ -54,7 +54,7 @@ export function resetMatchResults( ) throw Error("The match is locked."); - helpers.resetMatchResults(stored); + helpers.clearWinner(stored); propagator.applyMatchUpdate(stored); if (!helpers.isRoundRobin(stage) && !helpers.isSwiss(stage))