Skip to content

A local-first personal finance app

Show all payees by default for child transactions (#1573)

Johannes Löthberg5adab1885bd3
diff --git a/packages/desktop-client/src/components/autocomplete/PayeeAutocomplete.js b/packages/desktop-client/src/components/autocomplete/PayeeAutocomplete.js
index c74d915b11..a56a1656a2 100644
--- a/packages/desktop-client/src/components/autocomplete/PayeeAutocomplete.js
+++ b/packages/desktop-client/src/components/autocomplete/PayeeAutocomplete.js
@@ -206,7 +206,6 @@ export default function PayeeAutocomplete({
inputProps,
showMakeTransfer = true,
showManagePayees = false,
- defaultFocusTransferPayees = false,
tableBehavior,
embedded,
closeOnBlur,
@@ -228,9 +227,7 @@ export default function PayeeAutocomplete({
accounts = cachedAccounts;
}
- let [focusTransferPayees, setFocusTransferPayees] = useState(
- defaultFocusTransferPayees,
- );
+ let [focusTransferPayees, setFocusTransferPayees] = useState(false);
let [rawPayee, setRawPayee] = useState('');
let hasPayeeInput = !!rawPayee;
let payeeSuggestions = useMemo(() => {
diff --git a/packages/desktop-client/src/components/transactions/TransactionsTable.js b/packages/desktop-client/src/components/transactions/TransactionsTable.js
index dcaa5b8cd7..cc4073925f 100644
--- a/packages/desktop-client/src/components/transactions/TransactionsTable.js
+++ b/packages/desktop-client/src/components/transactions/TransactionsTable.js
@@ -594,7 +594,6 @@ function PayeeCell({
}}
showManagePayees={true}
tableBehavior={true}
- defaultFocusTransferPayees={transaction.is_child}
focused={true}
onUpdate={onUpdate}
onSelect={onSave}
diff --git a/upcoming-release-notes/1573.md b/upcoming-release-notes/1573.md
new file mode 100644
index 0000000000..06ac48ed0c
--- /dev/null
+++ b/upcoming-release-notes/1573.md
@@ -0,0 +1,6 @@
+---
+category: Enhancements
+authors: [kyrias]
+---
+
+Show all payees by default for child transactions.