From 9ecb154c36dacca7be1a1d9176233e55116baad8 Mon Sep 17 00:00:00 2001 From: Cedric Date: Fri, 3 Jul 2026 20:25:25 +0200 Subject: [PATCH] Actualiser js/admin.js --- js/admin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/admin.js b/js/admin.js index ccef75a..3aa01c7 100644 --- a/js/admin.js +++ b/js/admin.js @@ -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;