Space out ternaries

Co-Authored-By: Travis Ralston <travpc@gmail.com>
This commit is contained in:
Jorik Schellekens 2020-04-21 11:37:22 +01:00
parent e254675287
commit 82974bd98c

View file

@ -99,7 +99,7 @@ export default class StyleUserSettingsTab extends React.Component {
};
_onFontSizeChanged = (size) => {
const parsedSize = isNaN(parseInt(size))?SettingsStore.getDefaultValue("font_size"):parseFloat(size);
const parsedSize = isNaN(parseInt(size)) ? SettingsStore.getDefaultValue("font_size") : parseFloat(size);
this.setState({fontSize: parsedSize});
SettingsStore.setValue("font_size", null, SettingLevel.DEVICE, parsedSize);
};