From d275822cd42c8fc034e3492ec7db1f0fe26c3400 Mon Sep 17 00:00:00 2001 From: martbost Date: Mon, 7 Sep 2026 07:09:32 -0500 Subject: [PATCH] Fix "undefined joined your line" in Overview recent-activity The referral row read r.email but dashboard referral objects carry r.name (username or masked email). Use r.name with an escape + fallback. Co-Authored-By: Claude Opus 4.8 --- public/assets/my.js | 2 +- public/my.html | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/public/assets/my.js b/public/assets/my.js index 8672eab..fec1e8a 100644 --- a/public/assets/my.js +++ b/public/assets/my.js @@ -262,7 +262,7 @@ for (const r of (d.referrals || []).slice(0, 3)) { const div = document.createElement('div'); div.className = 'row'; - div.innerHTML = '🤝 ' + r.email + ' joined your line' + div.innerHTML = '🤝 ' + esc(r.name || r.email || 'A new member') + ' joined your line' + new Date(r.joined).toLocaleDateString() + ''; rows.push(div); } diff --git a/public/my.html b/public/my.html index 72c426d..12caa84 100644 --- a/public/my.html +++ b/public/my.html @@ -4,7 +4,7 @@ Member area | InstantAdPay - + @@ -641,9 +641,9 @@ - + - - + +