Skip to content

Commit

Permalink
s/wount/count/
Browse files Browse the repository at this point in the history
  • Loading branch information
fabi1cazenave committed Feb 15, 2024
1 parent b538601 commit be9f918
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions js/dactylo.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const STARTING_LEVEL = 4;
const MIN_WORD_WOUNT = 42;
const MIN_WORD_COUNT = 42;
const ALL_30_KEYS = [
'KeyF', 'KeyJ',
'KeyD', 'KeyK',
Expand Down Expand Up @@ -113,13 +113,13 @@ window.addEventListener('DOMContentLoaded', () => {

// gLessonLevel = level;
gLessonWords = gDictionary.words.filter(lessonFilter);
if (gLessonWords.length < MIN_WORD_WOUNT) {
if (gLessonWords.length < MIN_WORD_COUNT) {
gLessonWords = gLessonWords.concat(gDictionary.trigrams.filter(lessonFilter));
}
if (gLessonWords.length < MIN_WORD_WOUNT) {
if (gLessonWords.length < MIN_WORD_COUNT) {
gLessonWords = gLessonWords.concat(gDictionary.bigrams.filter(lessonFilter));
}
if (gLessonWords.length < MIN_WORD_WOUNT) {
if (gLessonWords.length < MIN_WORD_COUNT) {
gLessonWords = gLessonWords.concat(rawLetters);
}

Expand Down

0 comments on commit be9f918

Please sign in to comment.