Skip to content

Commit 2e7e0b5

Browse files
Sync cleared error (#6082)
1 parent ffe5524 commit 2e7e0b5

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

  • packages/loot-core/src/server/accounts
  • upcoming-release-notes

packages/loot-core/src/server/accounts/sync.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ export async function reconcileTransactions(
531531
category: existing.category || trans.category || null,
532532
imported_payee: trans.imported_payee || null,
533533
notes: existing.notes || trans.notes || null,
534-
cleared: trans.cleared ?? existing.cleared,
534+
cleared: existing.cleared || trans.cleared || false,
535535
raw_synced_data:
536536
existing.raw_synced_data ?? trans.raw_synced_data ?? null,
537537
};

upcoming-release-notes/6082.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
category: Bugfix
3+
authors: [Brostash]
4+
---
5+
6+
Prefer the incoming transaction's cleared status when importing from file/bank sync

0 commit comments

Comments
 (0)