Skip to content

Commit 3ba5a1d

Browse files
Update addTaskMoal.tsx
1 parent 4fe14df commit 3ba5a1d

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

app/(employer)/projects/[details]/content/addTaskMoal.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,15 @@ const AssignTask = ({ projectid }: AssognTaskProp) => {
6969
const router = useRouter();
7070

7171
const [formData, setFormData] = useState<FormData>({
72-
task: {
73-
title: "",
74-
description: "",
75-
status: "Todo",
76-
},
77-
email: "",
78-
name: "",
79-
dueDate: new Date(),
80-
});
72+
task: {
73+
title: "",
74+
description: "",
75+
status: "Todo",
76+
},
77+
email: "",
78+
name: "",
79+
dueDate: new Date() as Date, // Explicitly specify the type as Date
80+
});
8181

8282
const MAX_DESC = 200;
8383

0 commit comments

Comments
 (0)