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

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

parent 2c7b814d
No related branches found
No related tags found
No related merge requests found
...@@ -102,7 +102,7 @@ export default function FormatSettings({ prefs, savePrefs }) { ...@@ -102,7 +102,7 @@ export default function FormatSettings({ prefs, savePrefs }) {
<Text style={{ display: 'flex' }}> <Text style={{ display: 'flex' }}>
<Checkbox <Checkbox
id="settings-textDecimal" id="settings-textDecimal"
checked={prefs.hideFraction} checked={!!prefs.hideFraction}
onChange={onHideFraction} onChange={onHideFraction}
/> />
<label htmlFor="settings-textDecimal">Hide decimal places</label> <label htmlFor="settings-textDecimal">Hide decimal places</label>
......
---
category: Bugfix
authors: [j-f1]
---
Fix error in console when `hideFraction` pref is missing
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