Actualiser js/admin.js

This commit is contained in:
2026-07-03 20:25:25 +02:00
parent bb3a06bd2f
commit 9ecb154c36
+1 -1
View File
@@ -27,7 +27,7 @@ function showAdminSection(sectionId) {
function loadAdminData() {
document.getElementById('totalMatches').textContent = tournamentMatches.length;
document.getElementById('totalPlayers').textContent = Object.keys(playersData).length;
document.getElementById('totalUsers').textContent = users.length;
document.getElementById('totalUsers').textContent = typeof users !== 'undefined' ? users.length : 0;
const allPredictions = JSON.parse(localStorage.getItem('userPredictions') || '[]');
document.getElementById('totalPredictions').textContent = allPredictions.length;