fix: Null pointer expection for multiple choice question on web-app form (#770)

This commit is contained in:
RafalAtGaragenet
2023-09-06 03:31:34 +02:00
committed by GitHub
parent 5b704b536d
commit 36bd14e4f6

View File

@@ -91,7 +91,7 @@ export default function MultipleChoiceMultiQuestion({
[question.id]: selectedChoices,
};
if (symmetricDifference(selectedChoices, storedResponseValue).length === 0) {
if (!!storedResponseValue && symmetricDifference(selectedChoices, storedResponseValue).length === 0) {
goToNextQuestion(data);
return;
}