From 872cf984f3dc00681f596c693f6c04694e2d64b1 Mon Sep 17 00:00:00 2001 From: Raz Date: Thu, 17 Apr 2025 11:52:41 +0200 Subject: [PATCH] fix bracket broadcast --- tournaments/static/tournaments/js/tournament_bracket.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tournaments/static/tournaments/js/tournament_bracket.js b/tournaments/static/tournaments/js/tournament_bracket.js index bbf058d..6dc4781 100644 --- a/tournaments/static/tournaments/js/tournament_bracket.js +++ b/tournaments/static/tournaments/js/tournament_bracket.js @@ -105,7 +105,7 @@ function renderBracket(options) { // Create matches container const matchesContainer = document.createElement("div"); matchesContainer.className = "matches-container"; - if (roundCount > 5 && doubleButterflyMode == true) { + if (doubleButterflyMode == true) { if (roundIndex >= finalRoundIndex - 1) { matchesContainer.style.transform = `translateX(-50%)`; if (roundIndex >= finalRoundIndex + 2) { @@ -287,7 +287,7 @@ function renderBracket(options) { } } - if (roundCount > 5 && doubleButterflyMode == true) { + if (doubleButterflyMode == true) { if (roundIndex >= finalRoundIndex - 2) { if (roundIndex == finalRoundIndex - 1) { matchDiv.classList.add("reverse-bracket"); @@ -374,7 +374,7 @@ function renderBracket(options) {
`; - if (roundCount > 5 && doubleButterflyMode == true) { + if (doubleButterflyMode == true) { if (roundIndex >= finalRoundIndex - 2) { if (roundIndex === finalRoundIndex - 2) { if (matchIndex === 0) {