diff --git a/site/source/components/conversation/Conversation.tsx b/site/source/components/conversation/Conversation.tsx index 9ad0718b3..9f7f003b6 100644 --- a/site/source/components/conversation/Conversation.tsx +++ b/site/source/components/conversation/Conversation.tsx @@ -1,6 +1,6 @@ import { DottedName } from 'modele-social' import Engine, { PublicodesExpression } from 'publicodes' -import React from 'react' +import React, { useEffect, useState } from 'react' import { Trans, useTranslation } from 'react-i18next' import { useDispatch, useSelector } from 'react-redux' @@ -60,6 +60,9 @@ export default function Conversation({ dispatch(answerQuestion(dottedName, value)) } + const [firstRenderDone, setFirstRenderDone] = useState(false) + useEffect(() => setFirstRenderDone(true), []) + return ( <>