Skip to content

A local-first personal finance app

Fix error in console when `hideFraction` pref is missing (#1105)

Jed Fox38357f7efae6
diff --git a/packages/desktop-client/src/components/settings/Format.js b/packages/desktop-client/src/components/settings/Format.js
index 50e0b8ad71..aae3a66c31 100644
--- a/packages/desktop-client/src/components/settings/Format.js
+++ b/packages/desktop-client/src/components/settings/Format.js
@@ -102,7 +102,7 @@ export default function FormatSettings({ prefs, savePrefs }) {
<Text style={{ display: 'flex' }}>
<Checkbox
id="settings-textDecimal"
- checked={prefs.hideFraction}
+ checked={!!prefs.hideFraction}
onChange={onHideFraction}
/>
<label htmlFor="settings-textDecimal">Hide decimal places</label>
diff --git a/upcoming-release-notes/1105.md b/upcoming-release-notes/1105.md
new file mode 100644
index 0000000000..314f9978b8
--- /dev/null
+++ b/upcoming-release-notes/1105.md
@@ -0,0 +1,6 @@
+---
+category: Bugfix
+authors: [j-f1]
+---
+
+Fix error in console when `hideFraction` pref is missing