Korrekturen bei KO Spiele

This commit is contained in:
2026-06-29 22:52:42 -05:00
parent edaca815a7
commit 6811fc8161
4 changed files with 80 additions and 218 deletions

View File

@@ -17,7 +17,11 @@ function fmtTime(iso: string): string {
function scoreDisplay(m: Match): string {
if (m.status === "SCHEDULED" || (m.homeScore == null && m.awayScore == null)) return " : ";
return `${m.homeScore ?? 0} : ${m.awayScore ?? 0}`;
const base = `${m.homeScore ?? 0} : ${m.awayScore ?? 0}`;
if (m.homePenalty != null && m.awayPenalty != null) {
return `${base} (${m.homePenalty}:${m.awayPenalty} i.E.)`;
}
return base;
}
function statusLabel(m: Match): string {