diff --git a/scripts/styling.js b/scripts/styling.js index 07b2d79..c814388 100644 --- a/scripts/styling.js +++ b/scripts/styling.js @@ -75,7 +75,7 @@ function formatTime(seconds, format = 'symbols') { const count = Math.floor(seconds / unit.seconds); if (count > 0) { result.push({ name: unit.name, count: count, remainder: seconds % unit.seconds }); - if (!largestUnit) largestUnit = { name: unit.name, count: count, remainder: seconds % unit.seconds }; + if (!largestUnit.count) largestUnit = { name: unit.name, count: count, remainder: seconds % unit.seconds }; seconds %= unit.seconds; } }