mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-22 22:51:13 -05:00
Fix remaining console logs and types
This commit is contained in:
@@ -174,9 +174,9 @@ export function ManufacturerForm({ onSubmit, onCancel, initialData }: Manufactur
|
||||
precision={(watch('founded_date_precision') as DatePrecision) || 'year'}
|
||||
onChange={(date, precision) => {
|
||||
if (date && typeof date === 'string') {
|
||||
setValue('founded_date', toDateOnly(date) as any);
|
||||
setValue('founded_date', toDateOnly(date), { shouldValidate: true });
|
||||
} else {
|
||||
setValue('founded_date', null as any);
|
||||
setValue('founded_date', '', { shouldValidate: true });
|
||||
}
|
||||
setValue('founded_date_precision', precision);
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user