nits, fixes

This commit is contained in:
Anton Bracke
2022-02-22 19:01:26 +01:00
parent e82de63b34
commit 454ee6cf4c
8 changed files with 26 additions and 30 deletions
+1 -1
View File
@@ -19,7 +19,7 @@
});
async function saveShortcut(key: keyof SettingsData["shortcuts"], value: string) {
const shortcuts = get(settings)['shortcuts'] || { "camera_toggle": "", "mute_toggle": "" };
const shortcuts = get(settings)['shortcuts'];
shortcuts[key] = value;
settings.update((s) => ({ ...s, shortcuts }));
await api.saveSetting("shortcuts", shortcuts);