Skip to content

Commit

Permalink
refactor: made condition more clear
Browse files Browse the repository at this point in the history
  • Loading branch information
NullScope committed Jan 25, 2025
1 parent 9a0b8b8 commit ec16c99
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/loot-core/src/server/accounts/sync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -365,9 +365,9 @@ async function normalizeBankSyncTransactions(transactions, acctId) {
notes: notes.trim().replace('#', '##'),
category: trans.category ?? null,
imported_id:
!trans.cleared || trans.transactionId
? trans.transactionId
: `${trans.account}-${trans.internalTransactionId}`,
trans.cleared && !trans.transactionId
? `${trans.account}-${trans.internalTransactionId}`
: trans.transactionId,
imported_payee: trans.imported_payee,
cleared: trans.cleared,
},
Expand Down

0 comments on commit ec16c99

Please sign in to comment.