We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b09e72c commit 2f08a01Copy full SHA for 2f08a01
packages/db/src/study/SessionController.ts
@@ -296,6 +296,15 @@ export class SessionController<TView = unknown> extends Loggable {
296
return null;
297
}
298
299
+ // If timer expired, only return failed cards
300
+ if (this._secondsRemaining <= 0) {
301
+ if (this.failedQ.length > 0) {
302
+ return this.failedQ.peek(0);
303
+ } else {
304
+ return null; // No more failed cards, session over
305
+ }
306
307
+
308
// supply new cards at start of session
309
if (this.newQ.dequeueCount < this.sources.length && this.newQ.length) {
310
return this.newQ.peek(0);
0 commit comments