If user tries to change email to current email, do nothing (#3643)

Этот коммит содержится в:
Joram Wilander
2016-07-20 17:33:23 -04:00
коммит произвёл enahum
родитель 2bf81a9f09
Коммит 022cb7ffa1

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

@@ -167,7 +167,7 @@ class UserSettingsGeneralTab extends React.Component {
const {formatMessage} = this.props.intl;
if (user.email === email && confirmEmail === '') {
if (email === user.email && (confirmEmail === '' || confirmEmail === user.email)) {
this.updateSection('');
return;
}