fix case where theme color is empty

This commit is contained in:
SethBurkart123
2024-04-07 16:40:14 +10:00
parent 22b3666cf0
commit 22c51e3fb8
4 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ export const setTheme = async (themeId: string) => {
await browser.storage.local.set({
selectedTheme: themeId,
selectedColor: theme.defaultColour,
selectedColor: theme.defaultColour !== '' ? theme.defaultColour : '#007bff',
originalSelectedColor: originalSelectedColor.selectedColor
});