We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4fe14df commit 3ba5a1dCopy full SHA for 3ba5a1d
app/(employer)/projects/[details]/content/addTaskMoal.tsx
@@ -69,15 +69,15 @@ const AssignTask = ({ projectid }: AssognTaskProp) => {
69
const router = useRouter();
70
71
const [formData, setFormData] = useState<FormData>({
72
- task: {
73
- title: "",
74
- description: "",
75
- status: "Todo",
76
- },
77
- email: "",
78
- name: "",
79
- dueDate: new Date(),
80
- });
+ task: {
+ title: "",
+ description: "",
+ status: "Todo",
+ },
+ email: "",
+ name: "",
+ dueDate: new Date() as Date, // Explicitly specify the type as Date
+});
81
82
const MAX_DESC = 200;
83
0 commit comments