A local-first personal finance app
🐛 (nordigen) fallback to array version of remittanceInformationUnstructured if necessary (#745)
Jakub Kuczysa5a1c81eaf69
diff --git a/packages/loot-core/src/server/accounts/sync.js b/packages/loot-core/src/server/accounts/sync.jsindex 43fd7d1b2c..1c1eb77827 100644--- a/packages/loot-core/src/server/accounts/sync.js+++ b/packages/loot-core/src/server/accounts/sync.js@@ -319,7 +319,9 @@ async function normalizeNordigenTransactions(transactions, acctId) {const nameParts = [];nameParts.push(title(- trans.debtorName || trans.remittanceInformationUnstructured || '',+ trans.debtorName ||+ trans.remittanceInformationUnstructured ||+ (trans.remittanceInformationUnstructuredArray || []).join(', '),),);if (trans.debtorAccount && trans.debtorAccount.iban) {@@ -336,7 +338,9 @@ async function normalizeNordigenTransactions(transactions, acctId) {const nameParts = [];nameParts.push(title(- trans.creditorName || trans.remittanceInformationUnstructured || '',+ trans.creditorName ||+ trans.remittanceInformationUnstructured ||+ (trans.remittanceInformationUnstructuredArray || []).join(', '),),);if (trans.creditorAccount && trans.creditorAccount.iban) {@@ -369,7 +373,9 @@ async function normalizeNordigenTransactions(transactions, acctId) {payee: trans.payee,account: trans.account,date: trans.date,- notes: trans.remittanceInformationUnstructured,+ notes:+ trans.remittanceInformationUnstructured ||+ (trans.remittanceInformationUnstructuredArray || []).join(', '),imported_id: trans.transactionId,imported_payee: trans.imported_payee,},