fix traps

This commit is contained in:
klemek
2022-03-01 10:53:01 +01:00
parent 2cd587c21b
commit 1267cbe2a9
+3 -2
View File
@@ -63,7 +63,8 @@ const kanas = {
'きさち', 'きさち',
], ],
katakanas: [ katakanas: [
'ンソ', 'ンソ',
'シシ',
'ノメ', 'ノメ',
'クケタ', 'クケタ',
'コロヨ', 'コロヨ',
@@ -238,7 +239,7 @@ let app = {
similarIndexes.push(self.kanas.indexOf(utils.randitem(sameColumn))); similarIndexes.push(self.kanas.indexOf(utils.randitem(sameColumn)));
} }
} }
return similarIndexes.unique(); return similarIndexes.unique().filter(i => i >= 0);
}, },
generateQuestion: function () { generateQuestion: function () {
const self = this; const self = this;