HOT-FIX. linter fix
This commit is contained in:
@ -58,7 +58,8 @@ class ProfileContent extends Component {
|
||||
const isEqualPassword = newPassword === newPasswordRepeat;
|
||||
|
||||
if (!isEqualPassword) {
|
||||
notify.warn('Пароли не совпадают');
|
||||
this.newPassword.setError('Пароли не совпадают');
|
||||
this.newPasswordRepeat.setError('Пароли не совпадают');
|
||||
}
|
||||
|
||||
if (!newPasswordRepeat) {
|
||||
|
||||
@ -40,7 +40,6 @@ class UsersPage extends Component {
|
||||
});
|
||||
|
||||
this.addSubscribe(this.usersForm, EVENTS.SAVE_USER, async (user) => {
|
||||
console.log({user})
|
||||
await usersServiceApi.update(user);
|
||||
this.initPage();
|
||||
});
|
||||
|
||||
@ -178,9 +178,7 @@ class UserViewForm extends Component {
|
||||
}
|
||||
|
||||
saveUser = () => {
|
||||
console.log('save')
|
||||
if (this.validateInputs(true)) {
|
||||
console.log('valid')
|
||||
this.next(EVENTS.SAVE_USER, {
|
||||
login: this.login.getValue(),
|
||||
avatar: this.avatar.getValue(),
|
||||
|
||||
Reference in New Issue
Block a user