diff --git a/src/modules/question-view/QuestionView.tsx b/src/modules/question-view/QuestionView.tsx index 4d013765..13a93bce 100644 --- a/src/modules/question-view/QuestionView.tsx +++ b/src/modules/question-view/QuestionView.tsx @@ -56,7 +56,12 @@ const QuestionView = (): JSX.Element => { // Update the answer if the stored value change useEffect(() => { - if (status === 'success' && answer.length === 0 && !isInit) { + if ( + status === 'success' && + answer.length === 0 && + !isInit && + typeof userAnswer !== 'undefined' + ) { setAnswer(userAnswer?.answer ?? ''); setIsInit(true); }