Fix a bug when normalizing total in progress()

This commit is contained in:
Gregoo 2025-01-25 23:05:39 +01:00
parent acebf6efd6
commit 19750d1365

View File

@ -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;
}