Skip to content

Commit

Permalink
Merge pull request #32 from debashisbiswas/fix-page-hang
Browse files Browse the repository at this point in the history
Fix page hanging on certain combination values
  • Loading branch information
ranelpadon authored Aug 1, 2023
2 parents 474531f + 9a49aa3 commit b31347e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,11 @@ var ngramTypeConfig = {
},
refreshPhrases: function() {
var dataSource = this.dataSource;

if (dataSource.combination < 1) {
dataSource.combination = 1
}

dataSource.phrases = this.generatePhrases(dataSource.combination, dataSource.repetition);
this.expectedPhrase = dataSource.phrases[0];
dataSource.phrasesCurrentIndex = 0;
Expand Down

0 comments on commit b31347e

Please sign in to comment.