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 }); }