From e2171dceb6a28219f0ddebc325e4d01aa2629810 Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Thu, 23 Jul 2026 17:05:26 +0300 Subject: [PATCH] Clean up --- .../core/engine/propagation/traversal.ts | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/app/features/tournament-bracket/core/engine/propagation/traversal.ts b/app/features/tournament-bracket/core/engine/propagation/traversal.ts index 96e0d7638..212f905c6 100644 --- a/app/features/tournament-bracket/core/engine/propagation/traversal.ts +++ b/app/features/tournament-bracket/core/engine/propagation/traversal.ts @@ -91,10 +91,16 @@ export class Propagator { // Don't update related matches if it's a simple score update. if (!statusChanged && !resultChanged) return; - if (!helpers.isRoundRobin(stage) && !helpers.isSwiss(stage)) { - this.updateRelatedMatches(stored, statusChanged, resultChanged); - } else if (helpers.isRoundRobin(stage) && resultChanged) { - this.unlockNextRoundRobinRound(stored); + switch (stage.type) { + case "single_elimination": + case "double_elimination": + this.updateRelatedMatches(stored, statusChanged, resultChanged); + break; + case "round_robin": + if (resultChanged) this.unlockNextRoundRobinRound(stored); + break; + case "swiss": + break; } }