work in progress on avatar uploading

This commit is contained in:
or-else
2021-07-07 16:49:44 -07:00
parent 4975084eef
commit fd8e2d9a17
+3 -1
View File
@@ -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');
})