corriger affichage hors ligne
Deploy CoqGames / deploy (push) Successful in 16s

This commit is contained in:
2026-05-24 07:56:05 +00:00
parent ad3a87b4e9
commit 2b85c4bec0
+5 -2
View File
@@ -331,8 +331,11 @@ function getStatus(results) {
}
const downSinceMs = Date.now() - new Date(last.timestamp).getTime();
const lastSuccess = results.find(r => r.success);
if (lastSuccess) return { state: 'warn', text: 'Hors ligne depuis ' + formatDuration(downSinceMs) };
return { state: 'err', text: 'Hors ligne depuis ' + formatDuration(downSinceMs) };
const downText = downSinceMs >= 2 * 60 * 60 * 1000
? 'Hors ligne depuis plus de 2h'
: 'Hors ligne depuis ' + formatDuration(downSinceMs);
if (lastSuccess) return { state: 'warn', text: downText };
return { state: 'err', text: downText };
}
function renderCard(game, statusData) {