From ee25b41d7e9e9d637053025f99788c922d72e5ea Mon Sep 17 00:00:00 2001 From: Ajay Date: Sun, 4 Sep 2022 21:58:56 -0400 Subject: [PATCH] Don't carry over incorrect/harmful vote menu between videos --- src/components/ChapterVoteComponent.tsx | 5 +++++ src/js-components/previewBar.ts | 1 + 2 files changed, 6 insertions(+) diff --git a/src/components/ChapterVoteComponent.tsx b/src/components/ChapterVoteComponent.tsx index 6b9049a8..4893739e 100644 --- a/src/components/ChapterVoteComponent.tsx +++ b/src/components/ChapterVoteComponent.tsx @@ -32,6 +32,11 @@ class ChapterVoteComponent extends React.Component {/* Upvote Button */} diff --git a/src/js-components/previewBar.ts b/src/js-components/previewBar.ts index 1b9df1c8..7e171e4e 100644 --- a/src/js-components/previewBar.ts +++ b/src/js-components/previewBar.ts @@ -685,6 +685,7 @@ class PreviewBar { } else { // Hide chapters menu again chaptersContainer.style.display = "none"; + this.chapterVote.setVisibility(false); } } }