Skip to content

Commit

Permalink
Do not show success message when request failed
Browse files Browse the repository at this point in the history
  • Loading branch information
PredokMiF committed Aug 19, 2018
1 parent a0e0666 commit 028fe58
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/FileUploadProgress.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,15 +186,14 @@ FileUploadProgress.defaultProps = {
if (hasError) {
barStyle.backgroundColor = '#d9534f';
message = (<span style={{ color: '#a94442' }}>Failed to upload ...</span>);
}
if (progress === 100) {
} else if (progress === 100) {
message = (<span >Successfully uploaded</span>);
}

return (
<div className="_react_fileupload_progress_content">
<div style={styles.progressWrapper}>
<div className="_react_fileupload_progress_bar" style={barStyle}></div>
<div className="_react_fileupload_progress_bar" style={barStyle}/>
</div>
<button
className="_react_fileupload_progress_cancel"
Expand Down

0 comments on commit 028fe58

Please sign in to comment.