wip on avatar cropping

This commit is contained in:
or-else
2021-07-10 19:22:56 -07:00
parent f2cd1ba0f2
commit 07854ba9fc
7 changed files with 15 additions and 13 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ export default class AvatarUpload extends React.Component {
handleFileUpload(e) {
const image = e.target.files[0];
if (this.props.onImageReceived) {
this.props.onFileReceived(URL.createObjectURL(image));
this.props.onImageReceived(URL.createObjectURL(image));
return;
}