check if can select and cancel rum errors

This commit is contained in:
Alberto Xamin 2023-01-24 21:00:59 +01:00
parent 19be866323
commit 18d46f3ffc
No known key found for this signature in database
GPG Key ID: 4F026F48309500A2

View File

@ -69,7 +69,8 @@ export default {
if (this.remainingTime > 0) { if (this.remainingTime > 0) {
this.remainingTime--; this.remainingTime--;
} else { } else {
this.select(this.cards[0]); if (this.select) this.select(this.cards[0]);
else if (this.cancel) this.cancel();
window.clearInterval(this.intervalID); window.clearInterval(this.intervalID);
} }
}, },