This commit is contained in:
syuilo 2018-08-27 18:53:57 +09:00
parent a9133f48ad
commit fc10a81f2a

View file

@ -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]));
} }