From d573a011c643288200aea775345e6848d63411cc Mon Sep 17 00:00:00 2001 From: Ben Wheeler Date: Wed, 9 Sep 2020 11:17:57 -0400 Subject: [PATCH] fix buzz bug when initialOptions missing from settings --- src/utils/InitialOptions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/InitialOptions.js b/src/utils/InitialOptions.js index 862632b..7ced8db 100644 --- a/src/utils/InitialOptions.js +++ b/src/utils/InitialOptions.js @@ -143,7 +143,7 @@ export default class InitialOptions { * Gets next question that needs to be asked */ static nextUnansweredQuestion () { - if (!settingsSection || !settingsSection.length) return []; + if (!settingsSection || !settingsSection.length) return null; var nextUnansweredQuestion = settingsSection.find(function (question) { return !InitialOptions.isAnswered(question); });