mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
If user tries to change email to current email, do nothing (#3643)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user