diff options
author | Saturnino Abril <saturnino.abril@gmail.com> | 2017-06-28 01:27:31 +0800 |
---|---|---|
committer | George Goldberg <george@gberg.me> | 2017-06-27 18:27:31 +0100 |
commit | e2daa425fac3c976e21ed048b13424a2dc437a20 (patch) | |
tree | d0de5de0141577a13b6ee3edd925fa278786ebb5 /webapp/components/user_settings | |
parent | 9659a6da06852ede9bf6b87c0e39a543e88a5034 (diff) | |
download | chat-e2daa425fac3c976e21ed048b13424a2dc437a20.tar.gz chat-e2daa425fac3c976e21ed048b13424a2dc437a20.tar.bz2 chat-e2daa425fac3c976e21ed048b13424a2dc437a20.zip |
fix JS errors in saving preferences - for user's display (including custom theme vector) and advanced settings (#6764)
Diffstat (limited to 'webapp/components/user_settings')
-rw-r--r-- | webapp/components/user_settings/user_settings_advanced.jsx | 3 | ||||
-rw-r--r-- | webapp/components/user_settings/user_settings_display.jsx | 3 |
2 files changed, 0 insertions, 6 deletions
diff --git a/webapp/components/user_settings/user_settings_advanced.jsx b/webapp/components/user_settings/user_settings_advanced.jsx index 1e2ae2386..cc5824589 100644 --- a/webapp/components/user_settings/user_settings_advanced.jsx +++ b/webapp/components/user_settings/user_settings_advanced.jsx @@ -137,9 +137,6 @@ export default class AdvancedSettingsDisplay extends React.Component { preferences, () => { this.updateSection(''); - }, - (err) => { - this.setState({serverError: err.message}); } ); } diff --git a/webapp/components/user_settings/user_settings_display.jsx b/webapp/components/user_settings/user_settings_display.jsx index ccc70a108..9311f6b45 100644 --- a/webapp/components/user_settings/user_settings_display.jsx +++ b/webapp/components/user_settings/user_settings_display.jsx @@ -94,9 +94,6 @@ export default class UserSettingsDisplay extends React.Component { savePreferences([timePreference, namePreference, fontPreference, channelDisplayModePreference, messageDisplayPreference, collapseDisplayPreference], () => { this.updateSection(''); - }, - (err) => { - this.setState({serverError: err.message}); } ); } |