fix: hide empty standings and first-leg sections

This commit is contained in:
2026-09-09 09:44:47 +02:00
parent ed8a280d18
commit 56d9fa680c
2 changed files with 34 additions and 33 deletions
@@ -15,13 +15,13 @@ export function MatchInsights(props: {
awayAvgGoals?: number; // z.B. 4.8
}) {
return (
<div class="bg-gray-800/50 rounded-2xl p-4 border border-gray-800 space-y-4">
<h3 class="text-xs font-bold uppercase tracking-wider text-gray-400 text-center">
Hinspiel
</h3>
<Show when={props.firstLeg}>
<Show when={props.firstLeg}>
<div class="bg-gray-800/50 rounded-2xl p-4 border border-gray-800 space-y-4">
<h3 class="text-xs font-bold uppercase tracking-wider text-gray-400 text-center">
Hinspiel
</h3>
<MatchItem game={props.firstLeg} />
</Show>
</div>
</div>
</Show>
);
}