fixed live-display of CC using geojson

This commit is contained in:
PxlLoewe
2025-06-08 00:54:14 -07:00
parent dd53110500
commit 9f9fc49446
2 changed files with 20 additions and 9 deletions

View File

@@ -235,9 +235,9 @@ const RettungsmittelTab = ({
const livekitUser = participants.find((p) => (p.attributes.userId = aircraft.userId));
const lstName = useMemo(() => {
if (!aircraft.posLng || !aircraft.posLat) return;
if (!aircraft.posLng || !aircraft.posLat) return station.bosRadioArea;
return findLeitstelleForPosition(aircraft.posLng, aircraft.posLat);
}, [aircraft]);
}, [aircraft.posLng, aircraft.posLat]);
return (
<div className="p-4 text-base-content">