diff --git a/static/app.js b/static/app.js index b34782d..744d6f3 100644 --- a/static/app.js +++ b/static/app.js @@ -198,7 +198,7 @@ function renderButtons() { } function updateProgress(completedCount, totalChunks) { - const percentage = totalChunks === 0 ? 100 : (completedCount / totalChunks) * 100; + const percentage = totalChunks === 0 ? 0 : (completedCount / totalChunks) * 100; progressBar.style.width = `${percentage}%`; progressMeta.textContent = `${completedCount} of ${totalChunks} chunks`; }