diff options
author | Ajay Ramachandran <[email protected]> | 2021-08-14 21:54:16 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2021-08-14 21:54:16 -0400 |
commit | 93e5bf50330f07ae3afe2af20fb47b586b3c890c (patch) | |
tree | ac1365ed1dcd099b00ac148985b8759591b48f63 | |
parent | f01a1ae4ec34005f69dfb2bbb382099f9006d42f (diff) | |
parent | 1bd78ec1c4cdac5a0f6d11419a3317f01744a543 (diff) | |
download | SponsorBlock-93e5bf50330f07ae3afe2af20fb47b586b3c890c.tar.gz SponsorBlock-93e5bf50330f07ae3afe2af20fb47b586b3c890c.zip |
Merge pull request #887 from maximmax42/patch-1
Fix for an "enable category" popup
-rw-r--r-- | src/components/SponsorTimeEditComponent.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/SponsorTimeEditComponent.tsx b/src/components/SponsorTimeEditComponent.tsx index 483ddbae..3de70141 100644 --- a/src/components/SponsorTimeEditComponent.tsx +++ b/src/components/SponsorTimeEditComponent.tsx @@ -239,7 +239,7 @@ class SponsorTimeEditComponent extends React.Component<SponsorTimeEditProps, Spo categorySelectionChange(event: React.ChangeEvent<HTMLSelectElement>): void { // See if show more categories was pressed - if (!Config.config.categorySelections.some((category) => category.name === event.target.value)) { + if (event.target.value !== DEFAULT_CATEGORY && !Config.config.categorySelections.some((category) => category.name === event.target.value)) { const chosenCategory = event.target.value; event.target.value = DEFAULT_CATEGORY; @@ -369,4 +369,4 @@ class SponsorTimeEditComponent extends React.Component<SponsorTimeEditProps, Spo } } -export default SponsorTimeEditComponent;
\ No newline at end of file +export default SponsorTimeEditComponent; |