From 331ffdbdb4ceeb2a401c3c969587df42b831251a Mon Sep 17 00:00:00 2001 From: Travis Lesicka Date: Mon, 7 Oct 2024 21:47:41 +1000 Subject: [PATCH] Changes recommended by coderabbitai --- packages/desktop-client/src/components/sidebar/BudgetName.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/desktop-client/src/components/sidebar/BudgetName.tsx b/packages/desktop-client/src/components/sidebar/BudgetName.tsx index fc88f98a93b..39a48d516aa 100644 --- a/packages/desktop-client/src/components/sidebar/BudgetName.tsx +++ b/packages/desktop-client/src/components/sidebar/BudgetName.tsx @@ -64,7 +64,7 @@ function EditableBudgetName() { const [budgetName, setBudgetNamePref] = useMetadataPref('budgetName'); const [editing, setEditing] = useState(false); const [menuOpen, setMenuOpen] = useState(false); - const triggerRef = useRef(null); + const triggerRef = useRef(null); function onMenuSelect(type: string) { setMenuOpen(false); @@ -99,7 +99,7 @@ function EditableBudgetName() { fontWeight: 500, }} defaultValue={budgetName} - onEnter={async e => { + onEnter={e => { const inputEl = e.target as HTMLInputElement; const newBudgetName = inputEl.value; if (newBudgetName.trim() !== '') {