From ce3d82904196d78eed39f014813a2fa2bc76d493 Mon Sep 17 00:00:00 2001 From: Anton Bracke Date: Tue, 22 Feb 2022 20:02:13 +0100 Subject: [PATCH] fix type --- desktop/electron/src/shortcuts.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop/electron/src/shortcuts.ts b/desktop/electron/src/shortcuts.ts index 83385e63..780e7b8f 100644 --- a/desktop/electron/src/shortcuts.ts +++ b/desktop/electron/src/shortcuts.ts @@ -28,7 +28,7 @@ export function loadShortcuts() { } } -export function saveShortcut(shortcut: keyof SettingsData["shortcuts"], key: string | null) { +export function saveShortcut(shortcut: keyof SettingsData["shortcuts"], key: string) { const shortcuts = settings.get("shortcuts") || {}; shortcuts[shortcut] = key; settings.set("shortcuts", shortcuts);