Skip to content

A local-first personal finance app

Fix rules not checking "category is nothing" when reconciling (#3572)

David Martosf786bdcec3b5
diff --git a/packages/loot-core/src/server/accounts/sync.ts b/packages/loot-core/src/server/accounts/sync.ts
index 9209026d26..b453a5b88d 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 0000000000..e0802aca51
--- /dev/null
+++ b/upcoming-release-notes/3572.md
@@ -0,0 +1,6 @@
+---
+category: Bugfix
+authors: [davidmartos96]
+---
+
+Fix "category is nothing" rules not matching