From fc10a81f2a8c48623c952f40926e7fde5bbb9826 Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 27 Aug 2018 18:53:57 +0900 Subject: [PATCH] Fix bug --- src/modules/keyword/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/keyword/index.ts b/src/modules/keyword/index.ts index 00ee0f9..eb6108d 100644 --- a/src/modules/keyword/index.ts +++ b/src/modules/keyword/index.ts @@ -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])); }