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; } }