work in progress on avatar uploading
This commit is contained in:
@@ -36,7 +36,9 @@ export default class AvatarUpload extends React.Component {
|
||||
}
|
||||
|
||||
uploader.upload(image)
|
||||
.then(() => {})
|
||||
.then((url) => {
|
||||
this.props.onImageChanged(url);
|
||||
})
|
||||
.catch((err) => {
|
||||
this.props.onError(err, 'err');
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user