web: people: fixed create user
This commit is contained in:
parent
11ff1f69ba
commit
9a2a659430
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user