From 79eef0b562dda6cc00e9cb9f5a00568b7233745c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vebj=C3=B8rn=20Nordby?= Date: Fri, 18 Oct 2024 16:44:14 +0200 Subject: [PATCH] Krever gyldig dato i 9291 (#6714) --- .../src/ui/components/vurderDato/VurderDatoAksjonspunkt.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/prosess-uttak/src/ui/components/vurderDato/VurderDatoAksjonspunkt.tsx b/packages/prosess-uttak/src/ui/components/vurderDato/VurderDatoAksjonspunkt.tsx index 97bf5d44f6..41881fa806 100644 --- a/packages/prosess-uttak/src/ui/components/vurderDato/VurderDatoAksjonspunkt.tsx +++ b/packages/prosess-uttak/src/ui/components/vurderDato/VurderDatoAksjonspunkt.tsx @@ -1,6 +1,6 @@ import { Button } from '@navikt/ds-react'; import { Datepicker, Form, TextAreaField } from '@navikt/ft-form-hooks'; -import { maxLength, minLength, required } from '@navikt/ft-form-validators'; +import { hasValidDate, maxLength, minLength, required } from '@navikt/ft-form-validators'; import React from 'react'; import { useForm } from 'react-hook-form'; import ContainerContext from '../../context/ContainerContext'; @@ -38,7 +38,7 @@ const VurderDatoAksjonspunkt = ({ avbryt, initialValues }: Props) => { defaultMonth={new Date()} fromDate={new Date('1 Jan 2019')} toDate={new Date('31 Dec 2025')} - validate={[required]} + validate={[required, hasValidDate]} />