diff --git a/Front/js/backend/match.js b/Front/js/backend/match.js index cf850c7..411afc6 100644 --- a/Front/js/backend/match.js +++ b/Front/js/backend/match.js @@ -331,7 +331,7 @@ if (window.location.href.includes("arbitrage.html")) { //Récupération des données du formulaire let equipe1 = document.getElementById('equipe1').value; let equipe2 = document.getElementById('equipe2').value; - let sportID = document.getElementById("sport").value; + sportID = document.getElementById("sport").value; //Récupération de l'id de l'équipe if (!sportID.toLowerCase().includes("badminton")) { equipe1 = equipe1.substring(0, 6); @@ -430,45 +430,43 @@ if (window.location.href.includes("index.html") || window.location.href === "htt let finishedMatch = []; let container = document.getElementById('cardContainer'); matchList.forEach(match => { + const isFinished = match.status === "finished"; // Define isFinished here const cardHTML = ` -
${match.point1}
--
-${match.point2}
-${match.expand.sport.name}
- ${match.name !== "" ? `${match.name}
` : ''} -${match.point1}
+-
+${match.point2}
${match.expand.sport.name}
+ ${match.name !== "" ? `${match.name}
` : ''} +