fix: hide empty standings and first-leg sections
This commit is contained in:
@@ -413,7 +413,8 @@ class Sportsmanager {
|
|||||||
home: home.form,
|
home: home.form,
|
||||||
away: away.form,
|
away: away.form,
|
||||||
},
|
},
|
||||||
standing: Number(match.veranstaltung.tabellenwertung)
|
standing:
|
||||||
|
Number(match.veranstaltung.tabellenwertung) > 0
|
||||||
? {
|
? {
|
||||||
home: {
|
home: {
|
||||||
pos: Number(match.heim_team.platz),
|
pos: Number(match.heim_team.platz),
|
||||||
|
|||||||
@@ -15,13 +15,13 @@ export function MatchInsights(props: {
|
|||||||
awayAvgGoals?: number; // z.B. 4.8
|
awayAvgGoals?: number; // z.B. 4.8
|
||||||
}) {
|
}) {
|
||||||
return (
|
return (
|
||||||
|
<Show when={props.firstLeg}>
|
||||||
<div class="bg-gray-800/50 rounded-2xl p-4 border border-gray-800 space-y-4">
|
<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">
|
<h3 class="text-xs font-bold uppercase tracking-wider text-gray-400 text-center">
|
||||||
Hinspiel
|
Hinspiel
|
||||||
</h3>
|
</h3>
|
||||||
<Show when={props.firstLeg}>
|
|
||||||
<MatchItem game={props.firstLeg} />
|
<MatchItem game={props.firstLeg} />
|
||||||
</Show>
|
|
||||||
</div>
|
</div>
|
||||||
|
</Show>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user