diff options
Diffstat (limited to 'webapp/components/user_settings/user_settings_display.jsx')
-rw-r--r-- | webapp/components/user_settings/user_settings_display.jsx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/webapp/components/user_settings/user_settings_display.jsx b/webapp/components/user_settings/user_settings_display.jsx index f7a030e52..1b6ce3343 100644 --- a/webapp/components/user_settings/user_settings_display.jsx +++ b/webapp/components/user_settings/user_settings_display.jsx @@ -41,12 +41,15 @@ export default class UserSettingsDisplay extends React.Component { this.handleFont = this.handleFont.bind(this); this.updateSection = this.updateSection.bind(this); this.updateState = this.updateState.bind(this); - this.deactivate = this.deactivate.bind(this); this.createCollapseSection = this.createCollapseSection.bind(this); this.state = getDisplayStateFromStores(); } + componentWillUnmount() { + Utils.applyFont(PreferenceStore.get(Preferences.CATEGORY_DISPLAY_SETTINGS, 'selected_font', Constants.DEFAULT_FONT)); + } + handleSubmit() { const userId = UserStore.getCurrentId(); @@ -136,10 +139,6 @@ export default class UserSettingsDisplay extends React.Component { } } - deactivate() { - this.updateState(); - } - createCollapseSection() { if (this.props.activeSection === 'collapse') { const collapseFormat = [false, false]; |