Fix: Resolve internal server error

This commit is contained in:
gpt-engineer-app[bot]
2025-11-03 02:26:28 +00:00
parent 5a2c72ecd6
commit f6c409fac4
12 changed files with 35 additions and 34 deletions

View File

@@ -176,8 +176,8 @@ export function ReviewForm({
<div className="space-y-2">
<Label>Visit Date</Label>
<DatePicker
date={watch('visit_date') ? parseDateOnly(watch('visit_date')) : undefined}
onSelect={(date) => setValue('visit_date', date ? toDateOnly(date) : undefined)}
date={watch('visit_date') ? parseDateOnly(watch('visit_date') || '') : undefined}
onSelect={(date) => setValue('visit_date', date ? toDateOnly(date) : '')}
placeholder="When did you visit?"
disableFuture={true}
fromYear={1950}