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

This commit is contained in:
Joram Wilander
2016-07-20 17:33:23 -04:00
committed by enahum
parent 2bf81a9f09
commit 022cb7ffa1

View File

@@ -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;
}