From d5f10c323e69c7bc34ae01d3226b1a9440227e75 Mon Sep 17 00:00:00 2001 From: Johan Girod Date: Wed, 5 May 2021 18:40:54 +0200 Subject: [PATCH] =?UTF-8?q?:bug:=20r=C3=A9affiche=20le=20bouton=20suivant?= =?UTF-8?q?=20m=C3=AAme=20si=20la=20valeur=20par=20d=C3=A9faut=20est=20sel?= =?UTF-8?q?ectionn=C3=A9e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mon-entreprise/source/components/conversation/Question.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mon-entreprise/source/components/conversation/Question.tsx b/mon-entreprise/source/components/conversation/Question.tsx index 4a017f4bf..16cda9f1f 100644 --- a/mon-entreprise/source/components/conversation/Question.tsx +++ b/mon-entreprise/source/components/conversation/Question.tsx @@ -75,8 +75,9 @@ export default function Question({ useEffect(() => { if ( debouncedSelection !== null && - serializeEvaluation({ nodeValue: currentValue } as EvaluatedNode) !== - debouncedSelection + (missing || + serializeEvaluation({ nodeValue: currentValue } as EvaluatedNode) !== + debouncedSelection) ) { onChange(debouncedSelection) }