fix(vocab): distinguish zero session from daily quota
All checks were successful
Deploy to production / deploy (push) Successful in 2m3s

This commit is contained in:
Torsten Schulz (local)
2026-09-30 14:16:37 +02:00
parent bfa21d4896
commit 463554b0ab

View File

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