fix buzz bug when initialOptions missing from settings

This commit is contained in:
Ben Wheeler 2020-09-09 11:17:57 -04:00
parent 698cdae8ed
commit d573a011c6

View file

@ -143,7 +143,7 @@ export default class InitialOptions {
* Gets next question that needs to be asked * Gets next question that needs to be asked
*/ */
static nextUnansweredQuestion () { static nextUnansweredQuestion () {
if (!settingsSection || !settingsSection.length) return []; if (!settingsSection || !settingsSection.length) return null;
var nextUnansweredQuestion = settingsSection.find(function (question) { var nextUnansweredQuestion = settingsSection.find(function (question) {
return !InitialOptions.isAnswered(question); return !InitialOptions.isAnswered(question);
}); });