Skip to content

Commit

Permalink
refactor(tutorials.js): change order of function calls at the beginni…
Browse files Browse the repository at this point in the history
…ng of loadTutorialStep
  • Loading branch information
musicEnfanthen committed Jun 18, 2020
1 parent 4410a43 commit 2ddf1af
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions js/mei-tutorials.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,15 +141,15 @@ function loadTutorialStep(data, stepNum) {

console.log('\nloading step ' + stepNum + ', maximum step is ' + data.steps.length);

// do not allow download or continuation before tutorial is set up
disallowDownload();
blockNextStep();

//if all steps are passed, move on to the final page, and skip rest of function
if(stepNum >= data.steps.length) {
showFinalPage(data);
return true;
}

// do not allow download or continuation before tutorial is set up
disallowDownload();
blockNextStep();

//retrieve step object from data
var step = data.steps[stepNum];
Expand Down

0 comments on commit 2ddf1af

Please sign in to comment.