Skip to content

A local-first personal finance app

:bug: (importer) fix nYNAB importer when decimal budgets used (#1529)

Matiss Janis Aboltins1d651842412f
diff --git a/packages/loot-core/src/server/importers/ynab5.ts b/packages/loot-core/src/server/importers/ynab5.ts
index b5ad715583..320213b282 100644
--- a/packages/loot-core/src/server/importers/ynab5.ts
+++ b/packages/loot-core/src/server/importers/ynab5.ts
@@ -249,7 +249,7 @@ async function importBudgets(
await Promise.all(
budget.categories.map(async catBudget => {
let catId = entityIdMap.get(catBudget.id);
- let amount = catBudget.budgeted / 10;
+ let amount = Math.round(catBudget.budgeted / 10);
if (
!catId ||
diff --git a/upcoming-release-notes/1529.md b/upcoming-release-notes/1529.md
new file mode 100644
index 0000000000..62e9adee3e
--- /dev/null
+++ b/upcoming-release-notes/1529.md
@@ -0,0 +1,6 @@
+---
+category: Bugfix
+authors: [MatissJanis]
+---
+
+Fix nYNAB importer when fractional budget amounts are used