mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-27 09:21:55 +02:00
Space out ternaries
Co-Authored-By: Travis Ralston <travpc@gmail.com>
This commit is contained in:
parent
e254675287
commit
82974bd98c
@ -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…
x
Reference in New Issue
Block a user