mirror of
https://github.com/syuilo/ai.git
synced 2024-11-25 06:01:07 +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;
|
||||
|
||||
if (exist) {
|
||||
text = serifs.keyword.learned
|
||||
.replace('{word}', keyword[0])
|
||||
text = serifs.keyword.remembered
|
||||
.replace('{reading}', kanaToHira(keyword[8]));
|
||||
} else {
|
||||
this.learnedKeywords.insertOne({
|
||||
|
@ -79,7 +78,8 @@ export default class KeywordModule implements IModule {
|
|||
learnedAt: Date.now()
|
||||
});
|
||||
|
||||
text = serifs.keyword.remembered
|
||||
text = serifs.keyword.learned
|
||||
.replace('{word}', keyword[0])
|
||||
.replace('{reading}', kanaToHira(keyword[8]));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue