HOT-FIX. linter fix

This commit is contained in:
2020-09-10 22:26:54 +03:00
parent f70de4f43d
commit 4774d6959c
3 changed files with 2 additions and 4 deletions

View File

@ -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) {

View File

@ -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();
}); });

View File

@ -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(),