Skip to content

Commit

Permalink
fix: undo eslint change for date picker
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelblijleven committed Dec 29, 2023
1 parent 625ae13 commit d474dfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/forms/inputs/date-picker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default function DatePickerInput<TFieldValues extends FieldValues = Field
)}
>
{field.value ? (
format(field.value, "yyyy-MM-dd")
format(typeof field.value === 'string' ? new Date(field.value) : field.value, "yyyy-MM-dd")
) : (
<span>Pick a date</span>
)}
Expand Down

0 comments on commit d474dfb

Please sign in to comment.