- refactored fetching NPED Category
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user