mirror of
https://github.com/actualbudget/actual.git
synced 2026-04-28 01:58:40 -05:00
Prevent account fallback if name is defined in formatPayeeName (#429)
* Prevent account fallback if name is defined * Update realease-notes * Add comment
This commit is contained in:
committed by
GitHub
parent
3b26aa05b5
commit
446f40714d
@@ -21,6 +21,10 @@ export const formatPayeeName = (trans) => {
|
||||
|
||||
// use the correct name field if it was found
|
||||
// if not, use whatever we can find
|
||||
|
||||
// if the primary name option is set, prevent the account from falling back
|
||||
account = name ? account : trans.debtorAccount || trans.creditorAccount;
|
||||
|
||||
name =
|
||||
name ||
|
||||
trans.debtorName ||
|
||||
@@ -29,8 +33,6 @@ export const formatPayeeName = (trans) => {
|
||||
(trans.remittanceInformationUnstructuredArray || []).join(', ') ||
|
||||
trans.additionalInformation;
|
||||
|
||||
account = account || trans.debtorAccount || trans.creditorAccount;
|
||||
|
||||
if (name) {
|
||||
nameParts.push(title(name));
|
||||
}
|
||||
|
||||
6
upcoming-release-notes/429.md
Normal file
6
upcoming-release-notes/429.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
category: Bugfix
|
||||
authors: [hostyn]
|
||||
---
|
||||
|
||||
Prevent account fallback if name is defined in formatPayeeName
|
||||
Reference in New Issue
Block a user