diff --git a/public/js/players.js b/public/js/players.js index bea9bc1..9701eb1 100644 --- a/public/js/players.js +++ b/public/js/players.js @@ -3,14 +3,11 @@ let pendingPlayerData = null; let openPdgaNumber = null; // ── Delta-pill helper ───────────────────────────── -// Returns { text, cls, html } — use .text/.cls to update existing DOM elements -// safely; .html is available for insertion contexts. function renderDeltaPill(value, extraClass) { if (value == null) return null; const cls = value > 0 ? 'up' : value < 0 ? 'down' : 'flat'; const text = value > 0 ? '+' + value : String(value); - const extra = extraClass ? ' ' + extraClass : ''; - return { text, cls, html: `${text}` }; + return { text, cls }; } function setupTooltipsAfterSwap() {