diff --git a/src/signals/incident/definitions/wizard-step-2-vulaan/afval-thor.ts b/src/signals/incident/definitions/wizard-step-2-vulaan/afval-thor.ts index 7e148f62b7..89206605fa 100644 --- a/src/signals/incident/definitions/wizard-step-2-vulaan/afval-thor.ts +++ b/src/signals/incident/definitions/wizard-step-2-vulaan/afval-thor.ts @@ -1,9 +1,6 @@ // SPDX-License-Identifier: MPL-2.0 // Copyright (C) 2024 Gemeente Amsterdam -import { - falsyOrNumberOrNow, - inPast, -} from 'signals/incident/services/custom-validators' +import { inPast } from 'signals/incident/services/custom-validators' import { QuestionFieldType } from 'types/question' import locatie from './locatie' @@ -16,7 +13,7 @@ export const controls = { canBeNull: true, }, options: { - validators: [falsyOrNumberOrNow, inPast, 'required'], + validators: [inPast, 'required'], }, render: QuestionFieldType.DateTimeInput, }, diff --git a/src/signals/incident/definitions/wizard-step-2-vulaan/overlast-op-het-water.ts b/src/signals/incident/definitions/wizard-step-2-vulaan/overlast-op-het-water.ts index e049aadaf6..e449ab5219 100644 --- a/src/signals/incident/definitions/wizard-step-2-vulaan/overlast-op-het-water.ts +++ b/src/signals/incident/definitions/wizard-step-2-vulaan/overlast-op-het-water.ts @@ -1,9 +1,6 @@ // SPDX-License-Identifier: MPL-2.0 // Copyright (C) 2021 - 2024 Gemeente Amsterdam -import { - falsyOrNumberOrNow, - inPast, -} from 'signals/incident/services/custom-validators' +import { inPast } from 'signals/incident/services/custom-validators' import { QuestionFieldType } from 'types/question' import locatie from './locatie' @@ -23,7 +20,7 @@ export const overlastOpHetWater = { }, }, options: { - validators: [falsyOrNumberOrNow, inPast, 'required'], + validators: [inPast, 'required'], }, render: QuestionFieldType.DateTimeInput, }, @@ -42,7 +39,7 @@ export const overlastOpHetWater = { }, }, options: { - validators: [falsyOrNumberOrNow, inPast, 'required'], + validators: [inPast, 'required'], }, render: QuestionFieldType.DateTimeInput, }, diff --git a/src/signals/incident/definitions/wizard-step-2-vulaan/overlast-van-en-door-personen-of-groepen.ts b/src/signals/incident/definitions/wizard-step-2-vulaan/overlast-van-en-door-personen-of-groepen.ts index 2b6cece36f..b2becaab67 100644 --- a/src/signals/incident/definitions/wizard-step-2-vulaan/overlast-van-en-door-personen-of-groepen.ts +++ b/src/signals/incident/definitions/wizard-step-2-vulaan/overlast-van-en-door-personen-of-groepen.ts @@ -1,9 +1,6 @@ // SPDX-License-Identifier: MPL-2.0 // Copyright (C) 2018 - 2024 Gemeente Amsterdam -import { - falsyOrNumberOrNow, - inPast, -} from 'signals/incident/services/custom-validators' +import { inPast } from 'signals/incident/services/custom-validators' import { QuestionFieldType } from 'types/question' import locatie from './locatie' @@ -29,7 +26,7 @@ export const overlastPersonenEnGroepen = { canBeNull: true, }, options: { - validators: [falsyOrNumberOrNow, inPast, 'required'], + validators: [inPast, 'required'], }, render: QuestionFieldType.DateTimeInput, }, diff --git a/src/signals/incident/definitions/wizard-step-2-vulaan/verkeersoverlast.ts b/src/signals/incident/definitions/wizard-step-2-vulaan/verkeersoverlast.ts index c3c4cc4dc3..a029005278 100644 --- a/src/signals/incident/definitions/wizard-step-2-vulaan/verkeersoverlast.ts +++ b/src/signals/incident/definitions/wizard-step-2-vulaan/verkeersoverlast.ts @@ -1,9 +1,6 @@ // SPDX-License-Identifier: MPL-2.0 // Copyright (C) 2018 - 2024 Gemeente Amsterdam -import { - falsyOrNumberOrNow, - inPast, -} from 'signals/incident/services/custom-validators' +import { inPast } from 'signals/incident/services/custom-validators' import { QuestionFieldType } from 'types/question' import locatie from './locatie' @@ -16,7 +13,7 @@ export const verkeersoverlast = { canBeNull: true, }, options: { - validators: [falsyOrNumberOrNow, inPast, 'required'], + validators: [inPast, 'required'], }, render: QuestionFieldType.DateTimeInput, },