Skip to content

A local-first personal finance app

Fix Issue #3662 - Distribute button calculates splits one at a time (#3728)

lelemm6af0dbab56a9
diff --git a/packages/desktop-client/src/components/transactions/TransactionList.jsx b/packages/desktop-client/src/components/transactions/TransactionList.jsx
index 0a7784e047..abd0cb2f03 100644
--- a/packages/desktop-client/src/components/transactions/TransactionList.jsx
+++ b/packages/desktop-client/src/components/transactions/TransactionList.jsx
@@ -106,6 +106,7 @@ export function TransactionList({
const onSave = useCallback(async transaction => {
const changes = updateTransaction(transactionsLatest.current, transaction);
+ transactionsLatest.current = changes.data;
if (changes.diff.updated.length > 0) {
const dateChanged = !!changes.diff.updated[0].date;
diff --git a/upcoming-release-notes/3728.md b/upcoming-release-notes/3728.md
new file mode 100644
index 0000000000..69309c77d4
--- /dev/null
+++ b/upcoming-release-notes/3728.md
@@ -0,0 +1,6 @@
+---
+category: Bugfix
+authors: [lelemm]
+---
+
+Fix Distribute button calculates splits one at a time.