diff --git a/src/seqta/ui/themes/setTheme.ts b/src/seqta/ui/themes/setTheme.ts index 6d1631de..aadf6d51 100644 --- a/src/seqta/ui/themes/setTheme.ts +++ b/src/seqta/ui/themes/setTheme.ts @@ -18,7 +18,7 @@ export const setTheme = async (themeId: string) => { if (enabledTheme.selectedTheme) { const currentTheme = await localforage.getItem(enabledTheme.selectedTheme) as CustomTheme; if (currentTheme) { - removeTheme(currentTheme); + await removeTheme(currentTheme); } const color = await browser.storage.local.get('originalSelectedColor') as { originalSelectedColor: string; }; originalSelectedColor = { selectedColor: color.originalSelectedColor };