From c46856c21338bb1d937c2d53b60889e25c324eda Mon Sep 17 00:00:00 2001 From: afwilcox Date: Mon, 6 Jan 2025 14:51:28 -0800 Subject: [PATCH] fix: Update close logic for new equipment types --- frontend/src/app/hooks/validate-complaint.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/hooks/validate-complaint.tsx b/frontend/src/app/hooks/validate-complaint.tsx index 2733c6078..786369fe7 100644 --- a/frontend/src/app/hooks/validate-complaint.tsx +++ b/frontend/src/app/hooks/validate-complaint.tsx @@ -84,7 +84,11 @@ const useValidateComplaint = () => { const equipmentCriteria = equipment?.find( (item: EquipmentDetailsDto) => - item.wasAnimalCaptured === "U" && item.typeCode !== "SIGNG" && item.typeCode !== "TRCAM", + item.wasAnimalCaptured === "U" && + item.typeCode !== "SIGNG" && + item.typeCode !== "TRCAM" && + item.typeCode !== "LLTHL" && + item.typeCode !== "K9UNT", ) === undefined; //check Animal has outcome, officer and date