Actualiser js/admin.js
This commit is contained in:
+1
-1
@@ -27,7 +27,7 @@ function showAdminSection(sectionId) {
|
|||||||
function loadAdminData() {
|
function loadAdminData() {
|
||||||
document.getElementById('totalMatches').textContent = tournamentMatches.length;
|
document.getElementById('totalMatches').textContent = tournamentMatches.length;
|
||||||
document.getElementById('totalPlayers').textContent = Object.keys(playersData).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') || '[]');
|
const allPredictions = JSON.parse(localStorage.getItem('userPredictions') || '[]');
|
||||||
document.getElementById('totalPredictions').textContent = allPredictions.length;
|
document.getElementById('totalPredictions').textContent = allPredictions.length;
|
||||||
|
|||||||
Reference in New Issue
Block a user