Skip to content

Commit

Permalink
Update sync.ts with additionalInformation as fallback (#2176)
Browse files Browse the repository at this point in the history
  • Loading branch information
wokkieman authored Jan 9, 2024
1 parent 8969848 commit 97a4296
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/loot-core/src/server/accounts/sync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,8 @@ async function normalizeGoCardlessTransactions(transactions, acctId) {
title(
trans.debtorName ||
trans.remittanceInformationUnstructured ||
(trans.remittanceInformationUnstructuredArray || []).join(', '),
(trans.remittanceInformationUnstructuredArray || []).join(', ') ||
trans.additionalInformation,
),
);
if (trans.debtorAccount && trans.debtorAccount.iban) {
Expand All @@ -331,7 +332,8 @@ async function normalizeGoCardlessTransactions(transactions, acctId) {
title(
trans.creditorName ||
trans.remittanceInformationUnstructured ||
(trans.remittanceInformationUnstructuredArray || []).join(', '),
(trans.remittanceInformationUnstructuredArray || []).join(', ') ||
trans.additionalInformation,
),
);
if (trans.creditorAccount && trans.creditorAccount.iban) {
Expand Down
6 changes: 6 additions & 0 deletions upcoming-release-notes/2176.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
category: Enhancements
authors: [rjwonder]
---

Update sync.ts with additionalInformation as last resort fallback to prevent Payee being empty

0 comments on commit 97a4296

Please sign in to comment.