Web: Files: fixed upload percent

This commit is contained in:
Nikita Gopienko 2023-02-28 14:40:46 +03:00
parent b03d20a0f5
commit b46967d2de

View File

@ -850,7 +850,7 @@ class UploadDataStore {
newPercent = this.getFilesPercent(uploadedSize);
}
const percentCurrentFile = (index / length) * 100;
const percentCurrentFile = ((index + 1) / length) * 100;
const fileIndex = this.uploadedFilesHistory.findIndex(
(f) => f.uniqueId === this.files[indexOfFile].uniqueId