From 6938e7cbd0f15bed0f913f99c517d3dc75556bb0 Mon Sep 17 00:00:00 2001 From: dmitri-korin-bcps <108112696+dmitri-korin-bcps@users.noreply.github.com> Date: Tue, 25 Jun 2024 12:55:32 -0700 Subject: [PATCH] feat:CE-835-Remove-rule-for-closing-a-complaint (#485) Co-authored-by: afwilcox --- .../complaints/outcomes/hwcr-complaint-assessment.tsx | 1 + .../app/components/modal/instances/change-status-modal.tsx | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/components/containers/complaints/outcomes/hwcr-complaint-assessment.tsx b/frontend/src/app/components/containers/complaints/outcomes/hwcr-complaint-assessment.tsx index 8739533ed..d0ed58497 100644 --- a/frontend/src/app/components/containers/complaints/outcomes/hwcr-complaint-assessment.tsx +++ b/frontend/src/app/components/containers/complaints/outcomes/hwcr-complaint-assessment.tsx @@ -251,6 +251,7 @@ export const HWCRComplaintAssessment: FC = () => { dispatch(upsertAssessment(id, updatedAssessmentData)); setEditable(false); + dispatch(setIsInEdit({ showSectionErrors: false })); } else { handleFormErrors(); } diff --git a/frontend/src/app/components/modal/instances/change-status-modal.tsx b/frontend/src/app/components/modal/instances/change-status-modal.tsx index f239f3042..c8489ee7a 100644 --- a/frontend/src/app/components/modal/instances/change-status-modal.tsx +++ b/frontend/src/app/components/modal/instances/change-status-modal.tsx @@ -103,7 +103,9 @@ export const ChangeStatusModal: FC = ({ close, submit, c if ( noEditSections && assessmentCriteria && - preventionCriteria && + //The code line below commented becasue according to CE-835 + //users can close a complaint when Action required is Yes and the Prevention and education section is not completed. + //preventionCriteria && equipmentCriteria && animalCriteria && fileReviewCriteria