Skip to content

Commit

Permalink
Update sync.ts
Browse files Browse the repository at this point in the history
added the additionalInformation as fallback for debtor and creditor
  • Loading branch information
wokkieman authored Jan 5, 2024
1 parent d999e46 commit 7e1a200
Showing 1 changed file with 4 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

Check warning on line 316 in packages/loot-core/src/server/accounts/sync.ts

View workflow job for this annotation

GitHub Actions / lint

Insert `,`
),
);
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

Check warning on line 336 in packages/loot-core/src/server/accounts/sync.ts

View workflow job for this annotation

GitHub Actions / lint

Insert `,`
),
);
if (trans.creditorAccount && trans.creditorAccount.iban) {
Expand Down

0 comments on commit 7e1a200

Please sign in to comment.