Skip to content

Commit

Permalink
Ooops, need to return exactly false when done.
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaGrams committed Aug 9, 2018
1 parent a7a503e commit 9b82b6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion type-jig.js
Expand Up @@ -660,5 +660,5 @@ TypeJig.Exercise.prototype.nextWord = function() {
if(typeof word !== 'string') this.currentUnit = [];
else this.currentUnit = word.split(/\s+/)
}
return this.currentUnit.shift();
return this.currentUnit.shift() || false;
}

0 comments on commit 9b82b6d

Please sign in to comment.