From 78e4eb6bc6e270add4d605dfc5eb008bc9899ef6 Mon Sep 17 00:00:00 2001 From: Alexandre Hajjar Date: Tue, 7 Sep 2021 17:52:34 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20Fix=20React=20error=20on=20=20default=20value?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/conversation/select/SelectEuropeCountry.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mon-entreprise/source/components/conversation/select/SelectEuropeCountry.tsx b/mon-entreprise/source/components/conversation/select/SelectEuropeCountry.tsx index 2caf5ce61..fd629488b 100644 --- a/mon-entreprise/source/components/conversation/select/SelectEuropeCountry.tsx +++ b/mon-entreprise/source/components/conversation/select/SelectEuropeCountry.tsx @@ -46,10 +46,10 @@ export default function SelectEuropeCountry({ name="country" id={id} className="ui__" - defaultValue={value ? (value as string).slice(1, -1) : undefined} + defaultValue={value ? (value as string).slice(1, -1) : ''} onChange={(e) => onChange(`'${e.target.value}'`)} > - + {STATES.map((state) => (