diff --git a/src/components/MonthlyChecking/MenteeCheckInFormModal.component.tsx b/src/components/MonthlyChecking/MenteeCheckInFormModal.component.tsx index 9cc7f1d..03a0870 100644 --- a/src/components/MonthlyChecking/MenteeCheckInFormModal.component.tsx +++ b/src/components/MonthlyChecking/MenteeCheckInFormModal.component.tsx @@ -39,7 +39,7 @@ const MonthlyCheckInModal: React.FC<{ } = useForm({ resolver: zodResolver(MenteeCheckInSchema), defaultValues: { - title: '', + month: '', progressTowardsGoals: '', generalUpdatesAndFeedback: '', mediaContentLinks: [], @@ -107,9 +107,9 @@ const MonthlyCheckInModal: React.FC<{ Select the month for which you are submitting the progress.

- {errors.title && ( + {errors.month && (

- {errors.title.message} + {errors.month.message}

)} diff --git a/src/schemas.ts b/src/schemas.ts index b73406f..1933f22 100644 --- a/src/schemas.ts +++ b/src/schemas.ts @@ -124,7 +124,7 @@ export const MentorApplicationSchema = z.object({ }); export const MenteeCheckInSchema = z.object({ - title: z.string().min(1, 'Title is required'), + month: z.string().min(1, 'Month is required'), generalUpdatesAndFeedback: z .string() .min(5, 'Please provide general updates'),