From cca8191349da3977f9c4bd6b8fb4640680b28adc Mon Sep 17 00:00:00 2001 From: Nicolas Date: Tue, 1 Jul 2025 12:09:28 +0200 Subject: [PATCH] Fix Stats view #46 --- apps/hub/app/(app)/_components/Stats.tsx | 30 +++++++++++++++--------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/apps/hub/app/(app)/_components/Stats.tsx b/apps/hub/app/(app)/_components/Stats.tsx index bffcc06a..ea1cd68f 100644 --- a/apps/hub/app/(app)/_components/Stats.tsx +++ b/apps/hub/app/(app)/_components/Stats.tsx @@ -260,18 +260,26 @@ export const DispoStats = async () => { - {mostDispatchedStation && ( -
-
- -
-
{mostDispatchedStation?.bosCallsign}
-
Wurde von dir am meisten Disponiert
-
- {mostDispatchedStationIds[0]?._count.missionStationIds} Einsätze -
+
+
+
- )} + {mostDispatchedStation ? ( + <> +
{mostDispatchedStation?.bosCallsign}
+
Wurde von dir am meisten Disponiert
+
+ {mostDispatchedStationIds[0]?._count.missionStationIds} Einsätze +
+ + ) : ( + <> +
-
+
Noch keine Station bevorzugt disponiert
+
Starte jetzt deine erste Disposition!
+ + )} +
); };