From b1dcaee565d7d06829ac25edae32875126f6f9b1 Mon Sep 17 00:00:00 2001 From: PxlLoewe <72106766+PxlLoewe@users.noreply.github.com> Date: Wed, 23 Jul 2025 18:06:14 -0700 Subject: [PATCH] Rufgruppe anzeige gefixed --- .../app/_components/map/_components/AircraftMarkerTabs.tsx | 2 +- apps/dispatch/app/api/position-log/route.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/dispatch/app/_components/map/_components/AircraftMarkerTabs.tsx b/apps/dispatch/app/_components/map/_components/AircraftMarkerTabs.tsx index 42c1fdf5..8a6a8ad9 100644 --- a/apps/dispatch/app/_components/map/_components/AircraftMarkerTabs.tsx +++ b/apps/dispatch/app/_components/map/_components/AircraftMarkerTabs.tsx @@ -245,7 +245,7 @@ const StationTab = ({ aircraft }: { aircraft: ConnectedAircraft & { Station: Sta })), ) || []; - const livekitUser = participants.find((p) => (p.attributes.userId = aircraft.userId)); + const livekitUser = participants.find((p) => p.attributes.userId === aircraft.userId); const lstName = useMemo(() => { if (!aircraft.posLng || !aircraft.posLat) return station.bosRadioArea; diff --git a/apps/dispatch/app/api/position-log/route.ts b/apps/dispatch/app/api/position-log/route.ts index 3b50dbcc..87891c70 100644 --- a/apps/dispatch/app/api/position-log/route.ts +++ b/apps/dispatch/app/api/position-log/route.ts @@ -64,6 +64,7 @@ export const PUT = async (req: Request) => { }, }); + // TODO: Position Runden if (activeAircraft.posLat === position.lat && activeAircraft.posLng === position.lng) { return Response.json({ message: "Position has not changed" }, { status: 200 }); }