Fix unsubmitted segments sometimes not skipping

This commit is contained in:
Ajay Ramachandran
2021-10-11 22:22:36 -04:00
parent 5b79d4ef48
commit a2b054844a

View File

@@ -461,7 +461,7 @@ function startSponsorSchedule(includeIntersectingSegments = false, currentTime?:
}
// Don't skip if this category should not be skipped
if (!shouldSkip(currentSkip) && skipInfo.array !== sponsorTimesSubmitting) return;
if (!shouldSkip(currentSkip) && !sponsorTimesSubmitting?.some((segment) => segment.segment === currentSkip.segment)) return;
const skippingFunction = () => {
let forcedSkipTime: number = null;