Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
smit1678 committed Jul 14, 2018
1 parent 3432a01 commit 190921a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/uploader/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,12 @@ function createProgressTracker(progressStats, fileName, component) {
);

const percentComplete =
progress.sumTotalUploaded / progress.sumFilesize * 100;
(progress.sumTotalUploaded / progress.sumFilesize) * 100;
const percentDisplay = Math.round(percentComplete);
const plural = progressStatsValues.length > 1 ? "s" : "";
const uploadStatus = `Uploading ${progressStatsValues.length} image${plural} (${percentDisplay}%).`;
const uploadStatus = `Uploading ${
progressStatsValues.length
} image${plural} (${percentDisplay}%).`;
component.setState({
uploadProgress: percentComplete,
uploadActive: true,
Expand Down

0 comments on commit 190921a

Please sign in to comment.