From 389f77d850263bc59a4c6dc7461681c69e1ef335 Mon Sep 17 00:00:00 2001 From: Johan Girod Date: Tue, 28 Jan 2020 13:25:33 +0100 Subject: [PATCH] =?UTF-8?q?:bug:=20am=C3=A9liore=20le=20champ=20d'entr?= =?UTF-8?q?=C3=A9e=20de=20date?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/components/conversation/DateInput.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/components/conversation/DateInput.tsx b/source/components/conversation/DateInput.tsx index 75f310ae1..aa1f337d9 100644 --- a/source/components/conversation/DateInput.tsx +++ b/source/components/conversation/DateInput.tsx @@ -17,6 +17,9 @@ export default function DateInput({ suggestions, onChange, onSubmit, value }) { return onChange(null) } const [year, month, day] = evt.target.value.split('-') + if (+year < 1700) { + return + } onChange(`${day}/${month}/${year}`) }, [onChange]