Skip to content
Snippets Groups Projects
Unverified Commit e9f6d6ba authored by Matiss Janis Aboltins's avatar Matiss Janis Aboltins Committed by GitHub
Browse files

:bug: fix zero budget values (#1308)

Closes #1299

<img width="324" alt="Screenshot 2023-07-07 at 18 56 38"
src="https://github.com/actualbudget/actual/assets/886567/1a4dbd65-52af-44d9-8205-94a4c6c745e5">
parent 88452ea5
No related branches found
No related tags found
No related merge requests found
...@@ -18,7 +18,7 @@ export default function format(value, type = 'string') { ...@@ -18,7 +18,7 @@ export default function format(value, type = 'string') {
} }
return formatted; return formatted;
case 'financial': case 'financial':
if (value == null || value === '') { if (value == null || value === '' || value === 0) {
return integerToCurrency(0); return integerToCurrency(0);
} else if (typeof value === 'string') { } else if (typeof value === 'string') {
const parsed = parseFloat(value); const parsed = parseFloat(value);
......
---
category: Bugfix
authors: [MatissJanis]
---
Fix budget showing "--0.00" values sometimes
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