fix: slot count invalid

This commit is contained in:
2025-11-04 23:53:10 +01:00
parent ea54573cac
commit 5e5a95b061
+1 -1
View File
@@ -263,7 +263,7 @@ const app = createApp({
); );
}, },
slotTooBig() { slotTooBig() {
const slotCount = this.totalDuration / this.config.duration; const slotCount = Math.ceil(this.totalDuration / this.config.duration);
if (this.config.endWithAll) { if (this.config.endWithAll) {
return slotCount - 1 < this.candidates.length; return slotCount - 1 < this.candidates.length;