Skip to content
Snippets Groups Projects
Unverified Commit 96c7af0c authored by Jed Fox's avatar Jed Fox Committed by GitHub
Browse files

Fix #template 0 causing an error (#751)


Thanks @kidglove57 for spotting this issue and helping me track down the
cause!

---------

Co-authored-by: default avatarMatiss Janis Aboltins <matiss@mja.lv>
parent 319679fd
No related branches found
No related tags found
No related merge requests found
...@@ -226,7 +226,7 @@ async function applyCategoryTemplate(category, template_lines, month, force) { ...@@ -226,7 +226,7 @@ async function applyCategoryTemplate(category, template_lines, month, force) {
limit = amountToInteger(template.limit); limit = amountToInteger(template.limit);
} }
} }
if (template.monthly) { if (template.monthly != null) {
let monthly = amountToInteger(template.monthly); let monthly = amountToInteger(template.monthly);
to_budget += monthly; to_budget += monthly;
} else { } else {
......
---
category: Bugfix
authors: [j-f1]
---
Fix `#template 0` causing an error
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