If user tries to change email to current email, do nothing (#3643)
Этот коммит содержится в:
коммит произвёл
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;
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user