A local-first personal finance app
Update sync.ts with additionalInformation as fallback (#2176)
rjwonder97a4296d7ca5
diff --git a/packages/loot-core/src/server/accounts/sync.ts b/packages/loot-core/src/server/accounts/sync.tsindex ac93d5d52e..99d457d36a 100644--- a/packages/loot-core/src/server/accounts/sync.ts+++ b/packages/loot-core/src/server/accounts/sync.ts@@ -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) {@@ -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) {diff --git a/upcoming-release-notes/2176.md b/upcoming-release-notes/2176.mdnew file mode 100644index 0000000000..78f25d4c87--- /dev/null+++ b/upcoming-release-notes/2176.md@@ -0,0 +1,6 @@+---+category: Enhancements+authors: [rjwonder]+---++Update sync.ts with additionalInformation as last resort fallback to prevent Payee being empty