Skip to content

Commit

Permalink
fix typerror
Browse files Browse the repository at this point in the history
  • Loading branch information
beebls committed Jun 28, 2023
1 parent 4aef55a commit 1e23f5c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/Presets/AddThemeToPresetButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ export function AddThemeToPresetButton() {
generatePresetFromThemeNames(selectedPreset.name, [
...selectedPreset.dependencies,
themeToAdd,
]).then(() => {
if (!themes.find((e) => e.name === themeToAdd).enabled) {
await setThemeState(themeToAdd, true)
]).then(async () => {
if (!themes.find((e) => e.name === themeToAdd)!.enabled) {
await setThemeState(themeToAdd, true);
}
refreshThemes();
});
Expand Down

0 comments on commit 1e23f5c

Please sign in to comment.