- updated NPED function to make it less expensive

This commit is contained in:
2025-10-13 16:18:59 +01:00
parent 213477640b
commit 666b90d078
2 changed files with 17 additions and 15 deletions

View File

@@ -140,3 +140,6 @@ export const checkIsHotListHit = (sigthing: SightingType | null) => {
return isHotListHit;
}
};
export const getNPEDCategory = (r?: SightingType) =>
r?.metadata?.npedJSON?.["NPED CATEGORY"] as "A" | "B" | "C" | undefined;