mirror of
https://github.com/element-hq/element-web.git
synced 2024-11-30 23:31:28 +03:00
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) => {
|
_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});
|
this.setState({fontSize: parsedSize});
|
||||||
SettingsStore.setValue("font_size", null, SettingLevel.DEVICE, parsedSize);
|
SettingsStore.setValue("font_size", null, SettingLevel.DEVICE, parsedSize);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue