PLT-6518 Fixed user's locale not being loaded with redux actions (#6359)

* Stopped ManageLanguages component from mutating user

* Removed obsolete reference to mm_user

* PLT-6518 Fixed user's locale not being loaded with redux actions
Этот коммит содержится в:
Harrison Healey
2017-05-09 16:00:40 -04:00
коммит произвёл Joram Wilander
родитель e52ab9737e
Коммит 0c701cc1d0
7 изменённых файлов: 27 добавлений и 19 удалений

Просмотреть файл

@@ -33,12 +33,10 @@ export default class ManageLanguage extends React.Component {
changeLanguage(e) {
e.preventDefault();
var user = this.props.user;
var locale = this.state.locale;
user.locale = locale;
this.submitUser(user);
this.submitUser({
...this.props.user,
locale: this.state.locale
});
}
submitUser(user) {
updateUser(user, Constants.UserUpdateEvents.LANGUAGE,