diff --git a/src/components/Project/Infrastructure/EditActivityModal.jsx b/src/components/Project/Infrastructure/EditActivityModal.jsx
index d4c40b9b..bb3fa98a 100644
--- a/src/components/Project/Infrastructure/EditActivityModal.jsx
+++ b/src/components/Project/Infrastructure/EditActivityModal.jsx
@@ -20,7 +20,8 @@ const taskSchema = z
activityID: z.string().min(1, "Activity is required"),
workCategoryId: z.string().min(1, "Work Category is required"),
plannedWork: z.number().min(1, "Planned Work must be greater than 0"),
- completedWork: z.number().min(0, "Completed Work must be greater than 0"),
+ completedWork: z.number().min( 0, "Completed Work must be greater than 0" ),
+ comment:z.string()
})
.refine(
(data) =>
@@ -47,6 +48,7 @@ const EditActivityModal = ({
workCategoryId: 0,
plannedWork: 0,
completedWork: 0,
+ comment:""
};
const { projects_Details, refetch } = useProjectDetails(selectedProject);
@@ -185,6 +187,8 @@ const EditActivityModal = ({
workItem?.workItem?.plannedWork || workItem?.plannedWork || 0,
completedWork:
workItem?.workItem?.completedWork || workItem?.completedWork || 0,
+ comment:
+ workItem?.workItem?.description || workItem?.description || ""
});
return () => reset();
}, [activities, workItem]);
@@ -384,6 +388,27 @@ const EditActivityModal = ({
{/* )} */}
+
+
+
+
+ {errors.comment && (
+
+ {errors.comment.message}
+
+ )}
+
+
)}
- {/* Unit */}
{selectedActivity && selectedCategory && (
)}
-
+ {selectedActivity && selectedCategory && (
+
+
+
+ {errors.comment && (
+
+ {errors.comment.message}
+
+ )}
+
+ )}