aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAjay <[email protected]>2024-12-11 00:50:55 -0500
committerAjay <[email protected]>2024-12-11 00:50:55 -0500
commit557e2ea2df07f5fe53e458aa122c2a201be47d4c (patch)
tree31b6db01d8191d6fd26035ff04792f279e1320d0
parent11f576eb69a72e93ed2387a9f86771f1aea01fef (diff)
downloadSponsorBlock-557e2ea2df07f5fe53e458aa122c2a201be47d4c.tar.gz
SponsorBlock-557e2ea2df07f5fe53e458aa122c2a201be47d4c.zip
Fix full size manual skip notices showing "unskip" button instead of "skip"
Fixes #2160
-rw-r--r--src/components/SkipNoticeComponent.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/SkipNoticeComponent.tsx b/src/components/SkipNoticeComponent.tsx
index 188890e4..d30ae4d4 100644
--- a/src/components/SkipNoticeComponent.tsx
+++ b/src/components/SkipNoticeComponent.tsx
@@ -669,7 +669,7 @@ class SkipNoticeComponent extends React.Component<SkipNoticeProps, SkipNoticeSta
const skipButtonStates = this.state.skipButtonStates;
const skipButtonCallbacks = this.state.skipButtonCallbacks;
if (buttonIndex === null) {
- for (let i = 0; i < this.segments.length; i++) {
+ for (let i = 0; i < skipButtonStates.length; i++) {
skipButtonStates[i] = skipButtonState;
skipButtonCallbacks[i] = this.reskip.bind(this);
}