Skip to content

A local-first personal finance app

:bug: fix zero budget values (#1308)

Matiss Janis Aboltinse9f6d6ba4df5
diff --git a/packages/desktop-client/src/components/spreadsheet/format.js b/packages/desktop-client/src/components/spreadsheet/format.js
index 3bbdde031d..3cc523f316 100644
--- a/packages/desktop-client/src/components/spreadsheet/format.js
+++ b/packages/desktop-client/src/components/spreadsheet/format.js
@@ -18,7 +18,7 @@ export default function format(value, type = 'string') {
}
return formatted;
case 'financial':
- if (value == null || value === '') {
+ if (value == null || value === '' || value === 0) {
return integerToCurrency(0);
} else if (typeof value === 'string') {
const parsed = parseFloat(value);
diff --git a/upcoming-release-notes/1308.md b/upcoming-release-notes/1308.md
new file mode 100644
index 0000000000..6bfad95222
--- /dev/null
+++ b/upcoming-release-notes/1308.md
@@ -0,0 +1,6 @@
+---
+category: Bugfix
+authors: [MatissJanis]
+---
+
+Fix budget showing "--0.00" values sometimes