mirror of
https://github.com/syuilo/ai.git
synced 2024-11-09 23:48:01 +00:00
Fix bug
This commit is contained in:
parent
a9133f48ad
commit
fc10a81f2a
|
@ -70,8 +70,7 @@ export default class KeywordModule implements IModule {
|
||||||
let text: string;
|
let text: string;
|
||||||
|
|
||||||
if (exist) {
|
if (exist) {
|
||||||
text = serifs.keyword.learned
|
text = serifs.keyword.remembered
|
||||||
.replace('{word}', keyword[0])
|
|
||||||
.replace('{reading}', kanaToHira(keyword[8]));
|
.replace('{reading}', kanaToHira(keyword[8]));
|
||||||
} else {
|
} else {
|
||||||
this.learnedKeywords.insertOne({
|
this.learnedKeywords.insertOne({
|
||||||
|
@ -79,7 +78,8 @@ export default class KeywordModule implements IModule {
|
||||||
learnedAt: Date.now()
|
learnedAt: Date.now()
|
||||||
});
|
});
|
||||||
|
|
||||||
text = serifs.keyword.remembered
|
text = serifs.keyword.learned
|
||||||
|
.replace('{word}', keyword[0])
|
||||||
.replace('{reading}', kanaToHira(keyword[8]));
|
.replace('{reading}', kanaToHira(keyword[8]));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue