From ff88fb710a227fe8824ef8c804e162ea60f67b1e Mon Sep 17 00:00:00 2001 From: Saurabh Kumar Bajpai Date: Mon, 3 Aug 2026 12:32:32 +0530 Subject: [PATCH] fix: resolve 1 bugs in reframe --- src/hooks/useKeyboardShortcuts.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/useKeyboardShortcuts.ts b/src/hooks/useKeyboardShortcuts.ts index a21a24b4..a155d1c6 100644 --- a/src/hooks/useKeyboardShortcuts.ts +++ b/src/hooks/useKeyboardShortcuts.ts @@ -65,7 +65,7 @@ export function useKeyboardShortcuts({ default: if (e.key >= "1" && e.key <= "9") { - const index = parseInt(e.key) - 1; + const index = parseInt(e.key, 10) - 1; if (PRESETS[index]) { updateRecipe({ preset: PRESETS[index].id }); }