Revert PLT-3233 (#3477)

This commit is contained in:
David Lu
2016-07-05 07:17:50 -04:00
committed by Joram Wilander
parent c90a34c2a3
commit bc726b0840

View File

@@ -161,8 +161,9 @@ class UserSettingsGeneralTab extends React.Component {
const confirmEmail = this.state.confirmEmail.trim().toLowerCase();
const {formatMessage} = this.props.intl;
if (user.email === email) {
this.setState({emailError: Utils.localizeMessage('user.settings.general.emailUnchanged', 'Your new email address is the same as your old email address.'), clientError: '', serverError: ''});
if (user.email === email && confirmEmail === '') {
this.updateSection('');
return;
}