From 844567dcdf15b5349981053e8e4888dfd6e51071 Mon Sep 17 00:00:00 2001 From: FlorianZahn Date: Sat, 9 Oct 2021 08:13:02 +0200 Subject: Lit fixes --- src/components/SkipNoticeComponent.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/SkipNoticeComponent.tsx b/src/components/SkipNoticeComponent.tsx index 4fadcfb7..7ad24253 100644 --- a/src/components/SkipNoticeComponent.tsx +++ b/src/components/SkipNoticeComponent.tsx @@ -651,9 +651,9 @@ class SkipNoticeComponent extends React.Component x.UUID === segment.UUID); + const wikiLinkText = Config.config.wikiPages.get(segment.category); switch (type) { case 0: - const wikiLinkText = Config.config.wikiPages.get(segment.category); this.setNoticeInfoMessageWithOnClick(() => window.open(wikiLinkText), chrome.i18n.getMessage("OpenCategoryWikiPage")); this.setState({ voted: utils.replaceArrayElement(this.state.voted, SkipNoticeAction.Downvote, index) @@ -724,7 +724,7 @@ class SkipNoticeComponent extends React.Component