KO Bracket fixed

This commit is contained in:
2026-06-29 23:30:26 -05:00
parent 6811fc8161
commit d982ff1068
5 changed files with 110 additions and 10 deletions

View File

@@ -30,8 +30,8 @@ export async function GET() {
}
try {
const fifaMap = await fetchFifaScores();
matches = applyFifaScores(matches, fifaMap);
const fifaData = await fetchFifaScores();
matches = applyFifaScores(matches, teams, fifaData);
} catch (err) {
console.warn("[fifa] Scores fehlgeschlagen:", err instanceof Error ? err.message : err);
}

View File

@@ -75,6 +75,11 @@ function Tie({
</div>
<Side s={tie.home} prob={tie.prob?.home} teams={teams} onShowTip={onShowTip} onHideTip={onHideTip} />
<Side s={tie.away} prob={tie.prob?.away} teams={teams} onShowTip={onShowTip} onHideTip={onHideTip} />
{tie.homePenalty != null && tie.awayPenalty != null && (
<div className="tie-meta" style={{ padding: "2px 10px 4px", textAlign: "center" }}>
({tie.homePenalty}:{tie.awayPenalty} i.E.)
</div>
)}
</div>
);
}