fix(SW-449): Updated Date format to match current web

This commit is contained in:
Pontus Dreij
2024-11-06 10:04:59 +01:00
parent 4e3bb9a334
commit 0294a80eab
3 changed files with 7 additions and 8 deletions

View File

@@ -25,8 +25,7 @@ export default function Form({ locations, type }: BookingWidgetFormProps) {
type,
})
const { formState, handleSubmit, register } =
useFormContext<BookingWidgetSchema>()
const { handleSubmit, register } = useFormContext<BookingWidgetSchema>()
function onSubmit(data: BookingWidgetSchema) {
const locationData: Location = JSON.parse(decodeURIComponent(data.location))