dev
This commit is contained in:
12
apps/dispatch/app/_helpers/xPlaneObjectsAvailable.ts
Normal file
12
apps/dispatch/app/_helpers/xPlaneObjectsAvailable.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { ConnectedAircraft } from "@repo/db";
|
||||
|
||||
export const xPlaneObjectsAvailable = (
|
||||
missionStationIds?: number[],
|
||||
aircrafts?: ConnectedAircraft[],
|
||||
) => {
|
||||
return missionStationIds?.some((id) => {
|
||||
const aircraft = aircrafts?.find((a) => a.stationId === id);
|
||||
|
||||
return aircraft?.posXplanePluginActive;
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user