From 463554b0ab1a984a68df1ed975e73628abd1aed3 Mon Sep 17 00:00:00 2001 From: "Torsten Schulz (local)" Date: Wed, 30 Sep 2026 14:16:37 +0200 Subject: [PATCH] fix(vocab): distinguish zero session from daily quota --- frontend/src/views/social/VocabCourseView.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/views/social/VocabCourseView.vue b/frontend/src/views/social/VocabCourseView.vue index 5c7c6b4..798cc2c 100755 --- a/frontend/src/views/social/VocabCourseView.vue +++ b/frontend/src/views/social/VocabCourseView.vue @@ -458,7 +458,7 @@ export default { // A zero-card session is never a valid batch while the server still // reports due items. Otherwise the UI can incorrectly show "0 of 0" // even though there is a backlog to start today. - if (this.srsDailyQuota > 0 && Number.isFinite(Number(this.srsTodayRemaining))) { + if (Number(this.srsTodayQuota) > 0 && Number.isFinite(Number(this.srsTodayRemaining))) { return Math.max(0, Number(this.srsTodayRemaining)); } return Math.min(this.srsDueCount, this.srsDailyLimit);