From 55d66eb4695444e95235176f5bac0c456f7959e5 Mon Sep 17 00:00:00 2001 From: thomasmars Date: Tue, 4 Oct 2016 11:59:26 +0200 Subject: [PATCH] Fixed not setting progress when it is undefined. HFP-9 --- js/questionset.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/questionset.js b/js/questionset.js index 788b8bb..1dbe17c 100644 --- a/js/questionset.js +++ b/js/questionset.js @@ -131,7 +131,7 @@ H5P.QuestionSet = function (options, contentId, contentData) { var renderSolutions = false; var showingSolutions = false; contentData = contentData || {}; - if (contentData.previousState) { + if (contentData.previousState && contentData.previousState.progress) { currentQuestion = contentData.previousState.progress; }