From 181b672f761c621c30a7213b102e347180c08088 Mon Sep 17 00:00:00 2001 From: Mario Zechner Date: Wed, 5 Jul 2023 20:39:09 +0200 Subject: [PATCH] Progressbar steps are floats, can't reach 100 in some cases :D --- site/views/progress-bar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/views/progress-bar.js b/site/views/progress-bar.js index 2ad021c..44e665d 100644 --- a/site/views/progress-bar.js +++ b/site/views/progress-bar.js @@ -15,7 +15,7 @@ class ProgressBar { addStep() { this.progress += this.step; this.progressBar.style.transform = `scaleX(${this.progress / 100})`; - if (this.progress >= 100) { + if (this.progress >= 99) { this.finished(); } }