fix(vocab): distinguish zero session from daily quota
All checks were successful
Deploy to production / deploy (push) Successful in 2m3s
All checks were successful
Deploy to production / deploy (push) Successful in 2m3s
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user