diff --git a/frontend/src/dialogues/socialnetwork/VocabPracticeDialog.vue b/frontend/src/dialogues/socialnetwork/VocabPracticeDialog.vue index c22a933..d5c6424 100755 --- a/frontend/src/dialogues/socialnetwork/VocabPracticeDialog.vue +++ b/frontend/src/dialogues/socialnetwork/VocabPracticeDialog.vue @@ -209,7 +209,6 @@ export default { hardPhaseActive: false, hardMasteryByKey: {}, // { [hardKey]: consecutiveCorrect } cycleAskedIds: [], - dailyHardMarkedCount: 0, }; }, computed: { @@ -448,12 +447,11 @@ export default { } this.saveHardVocabMap(); if (this.srsMode) { - this.dailyHardMarkedCount += 1; this.maybeStartDailyHardPractice(); } }, maybeStartDailyHardPractice() { - if (this.dailyHardMarkedCount < MAX_DAILY_HARD_VOCABS) return; + if (this.hardCount < MAX_DAILY_HARD_VOCABS) return; const callback = this.onDailyHardLimitReached; this.close(); this.$nextTick(() => { @@ -636,12 +634,12 @@ export default { this.hardPhaseActive = false; this.hardMasteryByKey = {}; this.cycleAskedIds = []; - this.dailyHardMarkedCount = 0; this.locked = false; this.resetQuestion(); this.$refs.dialog.open(); this.$nextTick(() => { document.addEventListener('keydown', this.handleKeyDown); + if (this.srsMode) this.maybeStartDailyHardPractice(); }); this.loadHardVocabMap(); this.reloadPool();