Skip to content
Snippets Groups Projects
Unverified Commit 400078dc authored by shall0pass's avatar shall0pass Committed by GitHub
Browse files

Goals: Cleanup script error (#1095)

There was one more location where the cleanup script could generate an
error. This should fully resolve the error, along with
https://github.com/actualbudget/actual/pull/1084.
parent 6de6ad66
No related branches found
No related tags found
No related merge requests found
...@@ -37,7 +37,7 @@ async function processCleanup(month) { ...@@ -37,7 +37,7 @@ async function processCleanup(month) {
if (template.filter(t => t.type === 'sink').length > 0) { if (template.filter(t => t.type === 'sink').length > 0) {
sinkCategory.push({ cat: category, temp: template }); sinkCategory.push({ cat: category, temp: template });
num_sinks += 1; num_sinks += 1;
total_weight += template[0].weight; total_weight += template.filter(w => w.type === 'sink')[0].weight;
} }
} }
} }
......
---
category: Bugfix
authors: [shall0pass]
---
Fixes an error when 'sink' and 'source' are in the same category.
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment