web: people: fixed create user

This commit is contained in:
NikolayRechkin 2019-09-27 11:52:17 +03:00
parent 11ff1f69ba
commit 9a2a659430

View File

@ -153,9 +153,9 @@ class CreateUserForm extends React.Component {
this.props.createProfile(this.state.profile)
.then((profile) => {
//toastr.success("Success");
//this.props.history.push(`${this.props.settings.homepage}/view/${profile.userName}`);
if(this.state.defaultImage !== '') this.createAvatar(profile.id,profile.userName);
toastr.success("Success");
this.props.history.push(`${this.props.settings.homepage}/view/${profile.userName}`);
//if(this.state.defaultImage !== '') this.createAvatar(profile.id,profile.userName);
})
.catch((error) => {
toastr.error(error.message)