diff --git a/frontend/src/scripts/controllers/theme-controller.ts b/frontend/src/scripts/controllers/theme-controller.ts index 7047605bf..c2169e870 100644 --- a/frontend/src/scripts/controllers/theme-controller.ts +++ b/frontend/src/scripts/controllers/theme-controller.ts @@ -222,6 +222,7 @@ export function randomizeTheme(): void { } export function clearRandom(): void { + if (randomTheme === null) return; randomTheme = null; if (Config.customTheme) { apply("custom", true);