Don't show unsubmitted segments in description box

This commit is contained in:
Ajay
2022-09-18 16:02:52 -04:00
parent 614d6a722a
commit 4970d33169
3 changed files with 7 additions and 5 deletions

View File

@@ -8,6 +8,7 @@ import { RectangleTooltip } from "../render/RectangleTooltip";
import SelectorComponent, { SelectorOption } from "./SelectorComponent";
import { GenericUtils } from "../utils/genericUtils";
import { noRefreshFetchingChaptersAllowed } from "../utils/licenseKey";
import { DEFAULT_CATEGORY } from "../utils/categoryUtils";
const utils = new Utils();
@@ -33,8 +34,6 @@ export interface SponsorTimeEditState {
chapterNameSelectorOpen: boolean;
}
const DEFAULT_CATEGORY = "chooseACategory";
const categoryNamesGrams: string[] = [].concat(...CompileConfig.categoryList.filter((name) => name !== "chapter")
.map((name) => chrome.i18n.getMessage("category_" + name).split(/\/|\s|-/)));