Skip to content

Commit

Permalink
Fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunshine168 committed Apr 2, 2018
1 parent 7510a68 commit 8871bfd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/ProcessImage.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ class ProcessImage extends Component {
this.setState({ src, err });
this.passPropsToParent(props, src, err);
if (typeof props.onProcessFinish === 'function') {
onProcessFinish();
props.onProcessFinish();
}
}
});
Expand All @@ -139,7 +139,7 @@ class ProcessImage extends Component {
setItem('placeholder', e.data.src, storageReference);
this.passPropsToParent(props, e.data.src, e.data.err);
if (typeof props.onProcessFinish === 'function') {
onProcessFinish();
props.onProcessFinish();
}
}
};
Expand Down Expand Up @@ -180,7 +180,6 @@ class ProcessImage extends Component {
render() {
const { src } = this.state;
const restProps = getImageProps(this.props);

return this.showImage(src, this.props, restProps);
}
}
Expand Down

0 comments on commit 8871bfd

Please sign in to comment.