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)
|
this.props.createProfile(this.state.profile)
|
||||||
.then((profile) => {
|
.then((profile) => {
|
||||||
//toastr.success("Success");
|
toastr.success("Success");
|
||||||
//this.props.history.push(`${this.props.settings.homepage}/view/${profile.userName}`);
|
this.props.history.push(`${this.props.settings.homepage}/view/${profile.userName}`);
|
||||||
if(this.state.defaultImage !== '') this.createAvatar(profile.id,profile.userName);
|
//if(this.state.defaultImage !== '') this.createAvatar(profile.id,profile.userName);
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
toastr.error(error.message)
|
toastr.error(error.message)
|
||||||
|
Loading…
Reference in New Issue
Block a user