From 8bdd507313e1336c44c8cbfd00153de35b82011c Mon Sep 17 00:00:00 2001 From: devendra <devendra@devendras-MacBook-Pro.local> Date: Tue, 20 Dec 2022 08:40:47 +0530 Subject: [PATCH] Fix: inspection completed button enabled for assessor --- src/layouts/Inspector/FormView.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/layouts/Inspector/FormView.tsx b/src/layouts/Inspector/FormView.tsx index fd33fe4..493e3fc 100644 --- a/src/layouts/Inspector/FormView.tsx +++ b/src/layouts/Inspector/FormView.tsx @@ -383,12 +383,12 @@ export const FormView = ({ applicationData, formData }: FormViewProps) => { }); if (tempArray.includes("")) { - setEnableInspectionComplete(false); + setEnableInspectionComplete(true); } else { if (formData.inspectionFields) { setEnableInspectionComplete(true); } else { - setEnableInspectionComplete(false); + setEnableInspectionComplete(true); } } } -- GitLab