From 79f4c59b17d6e6130e3fee0203949e7a7c2434e6 Mon Sep 17 00:00:00 2001 From: Johan Girod Date: Mon, 12 Oct 2020 15:20:03 +0200 Subject: [PATCH] =?UTF-8?q?:bug:=20ajoute=20la=20possibilit=C3=A9=20de=20s?= =?UTF-8?q?p=C3=A9cifier=20une=20valeur=20=C3=A0=200=20pour=20les=20champs?= =?UTF-8?q?=20d'entr=C3=A9e=20de=20nombre"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mon-entreprise/source/components/conversation/Conversation.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mon-entreprise/source/components/conversation/Conversation.tsx b/mon-entreprise/source/components/conversation/Conversation.tsx index 8b8017c47..a30d7304d 100644 --- a/mon-entreprise/source/components/conversation/Conversation.tsx +++ b/mon-entreprise/source/components/conversation/Conversation.tsx @@ -29,7 +29,7 @@ export default function Conversation({ customEndMessages }: ConversationProps) { const rules = useContext(EngineContext).getParsedRules() const currentQuestion = useNextQuestions()[0] const situation = useSelector(situationSelector) - const currentQuestionIsAnswered = !!situation[currentQuestion] + const currentQuestionIsAnswered = situation[currentQuestion] != null const previousAnswers = useSelector(answeredQuestionsSelector) useEffect(() => { if (currentQuestion) {