From 7e5f6d874ff5eac58f9f0c633aa8e5b42b1bfe08 Mon Sep 17 00:00:00 2001 From: BocognanoSarah Date: Thu, 30 May 2024 15:09:39 +0200 Subject: [PATCH] [frontend] Fix pr comments (#7118) --- .../ThreatActorIndividualEditionBiographics.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/opencti-platform/opencti-front/src/private/components/threats/threat_actors_individual/ThreatActorIndividualEditionBiographics.tsx b/opencti-platform/opencti-front/src/private/components/threats/threat_actors_individual/ThreatActorIndividualEditionBiographics.tsx index 63371172eb01e..f1d67d6b397e5 100644 --- a/opencti-platform/opencti-front/src/private/components/threats/threat_actors_individual/ThreatActorIndividualEditionBiographics.tsx +++ b/opencti-platform/opencti-front/src/private/components/threats/threat_actors_individual/ThreatActorIndividualEditionBiographics.tsx @@ -94,7 +94,8 @@ ThreatActorIndividualEditionBiographicsComponentProps .when('measure', { is: (value: number) => value !== undefined && value !== null, then: (schema) => schema.required(t_i18n('This field is required')), - }); + }) + .typeError(t_i18n('The value must be a datetime (yyyy-MM-dd hh:mm (a|p)m)')); const basicShape = { eye_color: Yup.string()