diff --git a/src/pages/profile/components/profile-content/ProfileContent.js b/src/pages/profile/components/profile-content/ProfileContent.js index 6530a9c..5ac01b9 100644 --- a/src/pages/profile/components/profile-content/ProfileContent.js +++ b/src/pages/profile/components/profile-content/ProfileContent.js @@ -58,7 +58,8 @@ class ProfileContent extends Component { const isEqualPassword = newPassword === newPasswordRepeat; if (!isEqualPassword) { - notify.warn('Пароли не совпадают'); + this.newPassword.setError('Пароли не совпадают'); + this.newPasswordRepeat.setError('Пароли не совпадают'); } if (!newPasswordRepeat) { diff --git a/src/pages/users/components/page/Page.js b/src/pages/users/components/page/Page.js index ae620bf..cbc5696 100644 --- a/src/pages/users/components/page/Page.js +++ b/src/pages/users/components/page/Page.js @@ -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(); }); diff --git a/src/pages/users/components/user-view-form/UserViewForm.js b/src/pages/users/components/user-view-form/UserViewForm.js index 2a44012..cb71bb3 100644 --- a/src/pages/users/components/user-view-form/UserViewForm.js +++ b/src/pages/users/components/user-view-form/UserViewForm.js @@ -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(),