Skip to content

A local-first personal finance app

Fix ability to rename budget in the UI (#2383)

DJ Mountney45c4b262a2cc
diff --git a/packages/desktop-client/src/components/sidebar/Sidebar.tsx b/packages/desktop-client/src/components/sidebar/Sidebar.tsx
index b8d59bbdec..bd6bc5335f 100644
--- a/packages/desktop-client/src/components/sidebar/Sidebar.tsx
+++ b/packages/desktop-client/src/components/sidebar/Sidebar.tsx
@@ -187,7 +187,7 @@ function EditableBudgetName() {
const inputEl = e.target as HTMLInputElement;
const newBudgetName = inputEl.value;
if (newBudgetName.trim() !== '') {
- setBudgetNamePref(inputEl.name);
+ setBudgetNamePref(newBudgetName);
setEditing(false);
}
}}
diff --git a/upcoming-release-notes/2383.md b/upcoming-release-notes/2383.md
new file mode 100644
index 0000000000..492edcc3b0
--- /dev/null
+++ b/upcoming-release-notes/2383.md
@@ -0,0 +1,6 @@
+---
+category: Bugfix
+authors: [twk3]
+---
+
+Fix ability to rename budget in the UI.