Skip to content
This repository has been archived by the owner on Oct 17, 2022. It is now read-only.

Commit

Permalink
v1.6.1 release: display bytes count along with upload progress
Browse files Browse the repository at this point in the history
  • Loading branch information
arthow4n committed Apr 29, 2016
1 parent ee8c143 commit df73c86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.android.js
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ class minimgur extends Component {
// handle error
(err) => {
progress[image.order] = image.fileSize;
this.setState({ uploadProgress: progress.reduce((prev, curr) => prev + curr) / totalSize });
this.setState({ uploadProgress: progress.reduce((prev, curr) => prev + curr) });
Toast.show(DIC.failedToUploadSelectedImage, Toast.SHORT);
// handle occured error in main callback instead of mapLimit itself,
// otherwise mapLimit will immediately ignore rest pending async actions and call the main callback.
Expand Down

0 comments on commit df73c86

Please sign in to comment.