fix: slot count invalid
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user