mirror of
https://github.com/appen-isen/site-interpromo-2024.git
synced 2026-03-18 21:40:39 +01:00
fix rapide mais reste à corriger les classements de poule
This commit is contained in:
@@ -22,7 +22,7 @@ function getOrderedTableTeams(sport) {
|
||||
} else if (sport.type === "poules") {
|
||||
let teams = EquipeList.filter(equipe => equipe.sport === sport.id).sort((teamA, teamB) => teamA.classement - teamB.classement)
|
||||
let goalAverageText = ""
|
||||
if (teams[0].points === teams[1].points) {
|
||||
if((teams.length > 1) && (teams[0].points === teams[1].points)){
|
||||
goalAverageText = "(" + teams[0].goalAverage + ")"
|
||||
}
|
||||
result += `<h5 class="d-flex justify-content-between align-items-start">${teams[0].name}<span class="badge bg-warning text-black rounded-pill">${teams[0].points} pts${goalAverageText}</span></h5>`
|
||||
|
||||
Reference in New Issue
Block a user