Space out ternaries
Co-Authored-By: Travis Ralston <travpc@gmail.com>
This commit is contained in:
parent
e254675287
commit
82974bd98c
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue