mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2026-01-20 06:11:44 +08:00
custom theme edit fix (#3236)
This commit is contained in:
parent
4092d45887
commit
b74215a683
1 changed files with 3 additions and 2 deletions
|
|
@ -1088,12 +1088,13 @@ list["updateCustomTheme"] = new SimplePopup(
|
|||
}
|
||||
|
||||
const newTheme = {
|
||||
name: name,
|
||||
name: name.replaceAll(" ", "_"),
|
||||
colors: newColors,
|
||||
};
|
||||
Loader.show();
|
||||
await DB.editCustomTheme(customTheme._id, newTheme);
|
||||
const validation = await DB.editCustomTheme(customTheme._id, newTheme);
|
||||
Loader.hide();
|
||||
if (!validation) return;
|
||||
UpdateConfig.setCustomThemeColors(newColors);
|
||||
Notifications.add("Custom theme updated", 1);
|
||||
ThemePicker.refreshButtons();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue