not changing custom theme config when setting random theme

fixes #2704
This commit is contained in:
Miodec 2022-03-14 01:49:24 +01:00
parent b9213e0c76
commit bcd9ba7bef

View file

@ -1295,7 +1295,6 @@ export function setRandomTheme(
}
if (val === "custom") {
setCustomTheme(true, nosave);
if (firebase.auth().currentUser === null) {
config.randomTheme = val;
return false;
@ -1307,7 +1306,6 @@ export function setRandomTheme(
return false;
}
}
if (val !== "off" && val !== "custom") setCustomTheme(false);
config.randomTheme = val;
saveToLocalStorage("randomTheme", nosave);