diff --git a/frontend-js/src/main/js/map/data/ReferenceGenome.js b/frontend-js/src/main/js/map/data/ReferenceGenome.js index 2b0d4d4c06fd0a3f74e04e882004212c8e5237d5..bf2753eca6f99a69954bf5b907621539f999edb7 100644 --- a/frontend-js/src/main/js/map/data/ReferenceGenome.js +++ b/frontend-js/src/main/js/map/data/ReferenceGenome.js @@ -99,17 +99,18 @@ ReferenceGenome.prototype.setDownloadProgress = function (downloadProgress) { * @returns {string} */ ReferenceGenome.prototype.getDownloadProgressStatus = function () { - if (this.getDownloadProgress() === 100) { + var progress = this.getDownloadProgress(); + if (progress === 100) { if (this.getLocalUrl() !== undefined) { return "READY"; } else { return "ERROR"; } } else { - if (this.getDownloadProgress() === undefined) { + if (progress === undefined) { return "N/A"; } else { - return this.getDownloadProgress().toString(); + return progress.toFixed(2) + ' %'; } } };