diff --git a/packages/loot-core/src/server/accounts/sync.ts b/packages/loot-core/src/server/accounts/sync.ts index 9209026d262..b453a5b88d4 100644 --- a/packages/loot-core/src/server/accounts/sync.ts +++ b/packages/loot-core/src/server/accounts/sync.ts @@ -238,6 +238,8 @@ async function normalizeTransactions( trans.account = acctId; trans.payee = await resolvePayee(trans, payee_name, payeesToCreate); + trans.category = trans.category ?? null; + normalized.push({ payee_name, subtransactions: subtransactions @@ -294,6 +296,7 @@ async function normalizeBankSyncTransactions(transactions, acctId) { account: trans.account, date: trans.date, notes: notes.trim().replace('#', '##'), + category: trans.category ?? null, imported_id: trans.transactionId, imported_payee: trans.imported_payee, cleared: trans.cleared, diff --git a/upcoming-release-notes/3572.md b/upcoming-release-notes/3572.md new file mode 100644 index 00000000000..e0802aca51f --- /dev/null +++ b/upcoming-release-notes/3572.md @@ -0,0 +1,6 @@ +--- +category: Bugfix +authors: [davidmartos96] +--- + +Fix "category is nothing" rules not matching