diff --git a/components/custom/EventForm.tsx b/components/custom/EventForm.tsx index 9875f3d..d3b4444 100644 --- a/components/custom/EventForm.tsx +++ b/components/custom/EventForm.tsx @@ -102,7 +102,7 @@ const EventForm = ({ onSubmit }: EventFormProps) => {
{errors.name.message}
} + {errors.name &&{errors.name.message}
}{errors.description.message}
+{errors.description.message}
)} @@ -123,7 +123,7 @@ const EventForm = ({ onSubmit }: EventFormProps) => { {...register('capacity', { valueAsNumber: true })} /> {errors.capacity && ( -{errors.capacity.message}
+{errors.capacity.message}
)} @@ -135,7 +135,7 @@ const EventForm = ({ onSubmit }: EventFormProps) => { {...register('ticketPrice', { valueAsNumber: true })} /> {errors.ticketPrice && ( -{errors.ticketPrice.message}
+{errors.ticketPrice.message}
)} @@ -144,7 +144,7 @@ const EventForm = ({ onSubmit }: EventFormProps) => { {errors.description && ( -{errors.description.message}
+{errors.description.message}
)} @@ -159,7 +159,7 @@ const EventForm = ({ onSubmit }: EventFormProps) => { max="2100-12-31T23:59" /> {errors.eventStartTime && ( -{errors.eventStartTime.message}
+{errors.eventStartTime.message}
)} @@ -174,7 +174,7 @@ const EventForm = ({ onSubmit }: EventFormProps) => { max="2100-12-31T23:59" /> {errors.eventEndTime && ( -{errors.eventEndTime.message}
+{errors.eventEndTime.message}
)} @@ -209,7 +209,7 @@ const EventForm = ({ onSubmit }: EventFormProps) => { if (imgError) { const message = imgError.message || 'Invalid image URL'; return ( -+
Image {index + 1}: {message}
);