diff --git a/js/boxes.js b/js/boxes.js index af55f1c..ec16b27 100644 --- a/js/boxes.js +++ b/js/boxes.js @@ -24,7 +24,8 @@ const el = document.getElementById("counter"); el.innerText = items[1]; const el2 = document.getElementById("users"); - el2.innerText = items[2].replaceAll(",,,", "\n"); + const rest = items.slice(2).join(":"); + el2.innerText = rest.replaceAll(",,,", "\n"); return; } }; diff --git a/js/boxes.ts b/js/boxes.ts index 0ea7250..77a9860 100644 --- a/js/boxes.ts +++ b/js/boxes.ts @@ -34,8 +34,8 @@ type Box = { const el = document.getElementById("counter") as CheckboxEl; el.innerText = items[1]; const el2 = document.getElementById("users") as CheckboxEl; - el2.innerText = items[2].replaceAll(",,,", "\n"); - + const rest = items.slice(2).join(":"); + el2.innerText = rest.replaceAll(",,,", "\n"); return; } };