mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-05 19:24:39 +00:00
fixed issues with selected type conflicting
This commit is contained in:
@@ -65,8 +65,6 @@ const ThemeSelector = ({ selectedType, setSelectedType, isEditMode }: ThemeSelec
|
||||
stopLoading(themeName);
|
||||
return;
|
||||
}
|
||||
|
||||
console.log("Theme: ", theme);
|
||||
|
||||
// If theme is downloaded and is the currently enabled theme, disable it.
|
||||
if (theme.isDownloaded && themeName === enabledThemeName) {
|
||||
@@ -95,7 +93,13 @@ const ThemeSelector = ({ selectedType, setSelectedType, isEditMode }: ThemeSelec
|
||||
}
|
||||
|
||||
stopLoading(themeName);
|
||||
};
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
if (selectedType === 'background') {
|
||||
setEnabledThemeName('');
|
||||
}
|
||||
}, [selectedType]);
|
||||
|
||||
return (
|
||||
<div className="my-2">
|
||||
|
||||
Reference in New Issue
Block a user