A local-first personal finance app
:bug: (nordigen) fix detection of -0.00 "debited" transactions (#744)
Jakub Kuczys0baccfd728a1
diff --git a/packages/loot-core/src/server/accounts/sync.js b/packages/loot-core/src/server/accounts/sync.jsindex 7a64ebee0e..43fd7d1b2c 100644--- a/packages/loot-core/src/server/accounts/sync.js+++ b/packages/loot-core/src/server/accounts/sync.js@@ -312,7 +312,10 @@ async function normalizeNordigenTransactions(transactions, acctId) {}let payee_name;- if (trans.amount >= 0) {+ // When the amount is equal to 0, we need to determine+ // if this is a "Credited" or "Debited" transaction. This means+ // that it matters whether the amount is a positive or negative zero.+ if (trans.amount > 0 || Object.is(Number(trans.amount), 0)) {const nameParts = [];nameParts.push(title(