Skip to content

Commit

Permalink
fix: Update close logic for new equipment types
Browse files Browse the repository at this point in the history
  • Loading branch information
afwilcox committed Jan 6, 2025
1 parent f7c913e commit c46856c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion frontend/src/app/hooks/validate-complaint.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c46856c

Please sign in to comment.