Skip to content

Commit

Permalink
fixed a bug where playoff tree didnt render
Browse files Browse the repository at this point in the history
  • Loading branch information
Tehes committed Oct 18, 2024
1 parent 6b21a80 commit 4d372a6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
}
Expand All @@ -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.");
}
Expand Down

0 comments on commit 4d372a6

Please sign in to comment.