From 2519e2fa365a0be3a10880882695e0d748173bcf Mon Sep 17 00:00:00 2001 From: Saurabh Kumar Bajpai Date: Wed, 29 Jul 2026 23:43:53 +0530 Subject: [PATCH] fix: add radix parameter to parseInt calls --- 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 }); }