We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d11bae4 commit 7af5eceCopy full SHA for 7af5ece
1 file changed
backend/app/frontend/static/js/home.js
@@ -14,8 +14,8 @@ function _roll(id, val) {
14
const el = document.getElementById(id);
15
if (!el || (val == null && val !== 0)) return;
16
el.classList.remove('skeleton');
17
- const v = el.querySelector('.stat-value');
18
- if (v) window._rollNumber ? window._rollNumber(v, Number(val), 1600) : (v.textContent = Number(val).toLocaleString());
+ // The id is directly on the .stat-value element itself
+ window._rollNumber ? window._rollNumber(el, Number(val), 1600) : (el.textContent = Number(val).toLocaleString());
19
}
20
21
async function loadHome() {
0 commit comments