Skip to content

Commit 92b3cda

Browse files
committed
Fix status of if segments were found in popup to account for disabled categories
1 parent 907eba3 commit 92b3cda

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/content.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1193,7 +1193,7 @@ async function sponsorsLookup(keepOldSubmissions = true, ignoreCache = false) {
11931193
const receivedSegments = segmentData.segments;
11941194

11951195
if (receivedSegments && receivedSegments.length) {
1196-
sponsorDataFound = true;
1196+
sponsorDataFound = receivedSegments.findIndex((segment) => getCategorySelection(segment).option !== CategorySkipOption.Disabled) !== -1;
11971197

11981198
// Check if any old submissions should be kept
11991199
if (sponsorTimes !== null && keepOldSubmissions) {

0 commit comments

Comments
 (0)