fix: editor crashing (#1582)

This commit is contained in:
Dhruwang Jariwala
2023-11-06 16:09:28 +05:30
committed by GitHub
parent f2d23d9a37
commit 9d0b6cec76

View File

@@ -58,7 +58,7 @@ export default function ProgressBar({ survey, questionId, brandColor }: Progress
updatedProgress = progress + PROGRESS_INCREMENT;
}
setProgress(calculateProgress(questionId, survey, progress));
setPrevQuestionIdx(currentQustionIdx);
return updatedProgress;
}
// eslint-disable-next-line react-hooks/exhaustive-deps