feat(tournament): improve result handling and display for matches and participants

This commit is contained in:
Torsten Schulz (local)
2025-12-15 21:08:38 +01:00
parent 047b1801b3
commit 9bf37399d5
4 changed files with 318 additions and 119 deletions

View File

@@ -1452,7 +1452,8 @@ class TournamentService {
);
if (!pairing1Key || !pairing2Key) continue;
// Ergebnis kann null/undefiniert oder in anderem Format sein -> defensiv prüfen
if (!m.result || typeof m.result !== 'string' || !m.result.includes(':')) continue;
const [s1, s2] = m.result.split(':').map(n => parseInt(n, 10));
if (s1 > s2) {