From 19750d13657e7a8b261f66dd09fb092f0ad93094 Mon Sep 17 00:00:00 2001
From: Gregoo <versatile.mailbox@gmail.com>
Date: Sat, 25 Jan 2025 23:05:39 +0100
Subject: [PATCH] Fix a bug when normalizing total in progress()

---
 static/scripts/socket/socket.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/static/scripts/socket/socket.js b/static/scripts/socket/socket.js
index 2e213db..cb08889 100644
--- a/static/scripts/socket/socket.js
+++ b/static/scripts/socket/socket.js
@@ -139,7 +139,7 @@ class BrickSocket {
         let count = data["count"]
 
         // Fix the total if bogus
-        if (!total || isNaN(total) || total <= 1) {
+        if (!total || isNaN(total) || total <= 0) {
             total = 0;
         }