Skip to content

Commit

Permalink
Fix enableSolutionsButton for question type contract
Browse files Browse the repository at this point in the history
  • Loading branch information
otacke committed Dec 17, 2020
1 parent 89679c1 commit 348b79e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/scripts/h5p-dictation.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,10 @@ class Dictation extends H5P.Question {
this.languageTag = Util.formatLanguageCode(defaultLanguage);

// TODO: When other functionality needs a minor version bump, rename semantics variable in upgrade script
this.params.behaviour.enableSolutionsButton = params.behaviour.enableSolution === undefined ?
true : params.behaviour.enableSolution;
if (typeof this.params.behaviour.enableSolutionsButton === 'undefined') {
this.params.behaviour.enableSolutionsButton = params.behaviour.enableSolution === undefined ?
true : params.behaviour.enableSolution;
}

// Initialize
if (!params) {
Expand Down

0 comments on commit 348b79e

Please sign in to comment.