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