diff --git a/LongevityWorldCup.Website/wwwroot/partials/leaderboard-content.html b/LongevityWorldCup.Website/wwwroot/partials/leaderboard-content.html index ced98a3..1cf8468 100644 --- a/LongevityWorldCup.Website/wwwroot/partials/leaderboard-content.html +++ b/LongevityWorldCup.Website/wwwroot/partials/leaderboard-content.html @@ -464,14 +464,7 @@
athleteResults.sort((a, b) => a.ageReduction - b.ageReduction); // Assign ranks to each athlete based on the sorted order - athleteResults.forEach((athlete, index) => { - athlete.rank = index + 1; - console.log(`Rank: ${athlete.rank}`); - console.log(`Athlete: ${athlete.name}`); - console.log(`Chronological Age: ${athlete.chronologicalAge.toFixed(2)}`); - console.log(`Lowest PhenoAge: ${athlete.lowestPhenoAge.toFixed(2)}`); - console.log(`Age Reduction: ${athlete.ageReduction.toFixed(2)}`); - }); + athleteResults.forEach((athlete, index) => { athlete.rank = index + 1; }); // Determine how many athletes to display based on maxAthletes and includePodium let athletesToDisplay = athleteResults; @@ -531,7 +524,7 @@ ` : ''} -