- refactored fetching NPED Category

This commit is contained in:
2025-10-14 08:50:06 +01:00
parent 666b90d078
commit 7121809a9e
4 changed files with 12 additions and 18 deletions

View File

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