From d4f5aea31c03f17c07d77968306e05ba8958d539 Mon Sep 17 00:00:00 2001 From: Christian Andolf Date: Wed, 2 Apr 2025 10:14:24 +0200 Subject: [PATCH] chore: add missing type to watch --- .../components/Forms/BookingWidget/FormContent/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/scandic-web/components/Forms/BookingWidget/FormContent/index.tsx b/apps/scandic-web/components/Forms/BookingWidget/FormContent/index.tsx index c5e4b67d9..6fa09df86 100644 --- a/apps/scandic-web/components/Forms/BookingWidget/FormContent/index.tsx +++ b/apps/scandic-web/components/Forms/BookingWidget/FormContent/index.tsx @@ -32,7 +32,7 @@ export default function FormContent({ formState: { errors }, } = useFormContext() - const selectedDate = useWatch({ name: "date" }) + const selectedDate = useWatch({ name: "date" }) const nights = dt(selectedDate.toDate).diff(dt(selectedDate.fromDate), "days")