mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-25 07:14:00 +08:00
returning if snapshot doesnt exist
This commit is contained in:
parent
3e3e82886a
commit
5f6ce17071
1 changed files with 4 additions and 0 deletions
|
@ -1264,6 +1264,10 @@ export function updateCustomThemeListCommands(): void {
|
|||
|
||||
customThemeListCommands.list = [];
|
||||
|
||||
const snapshot = DB.getSnapshot();
|
||||
|
||||
if (!snapshot) return;
|
||||
|
||||
if (DB.getSnapshot().customThemes.length < 0) {
|
||||
Notifications.add("You need to create a custom theme first", 0);
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue