From 4d372a611644428556da7a7af93c77d984fc2625 Mon Sep 17 00:00:00 2001 From: Tino Sabetta Date: Fri, 18 Oct 2024 11:06:30 +0200 Subject: [PATCH] fixed a bug where playoff tree didnt render --- js/app.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/js/app.js b/js/app.js index 708a0de..cb072e5 100644 --- a/js/app.js +++ b/js/app.js @@ -574,11 +574,6 @@ function handleScheduleData(json) { setProgressBar(); renderTodaysGames(); renderMoreGames(); - - if (games.playoffs.length > 0) { - determinePlayInWinners(); - playoffPicture(); - } } else { console.log("Schedule data not available. Skipping schedule rendering."); } @@ -598,6 +593,11 @@ function handleStandingsData(json) { standingsEast = document.querySelector("#east table"); standingsWest = document.querySelector("#west table"); renderStandings(); + + if (games.playoffs.length > 0) { + determinePlayInWinners(); + playoffPicture(); + } } else { console.log("Standings data not available. Skipping standings rendering."); }