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 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-09-07 07:09:32 -05:00
parent 204aa6a723
commit d275822cd4
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -262,7 +262,7 @@
for (const r of (d.referrals || []).slice(0, 3)) { for (const r of (d.referrals || []).slice(0, 3)) {
const div = document.createElement('div'); const div = document.createElement('div');
div.className = 'row'; div.className = 'row';
div.innerHTML = '<span>🤝 ' + r.email + ' joined your line</span><span class="tx muted small">' div.innerHTML = '<span>🤝 ' + esc(r.name || r.email || 'A new member') + ' joined your line</span><span class="tx muted small">'
+ new Date(r.joined).toLocaleDateString() + '</span>'; + new Date(r.joined).toLocaleDateString() + '</span>';
rows.push(div); rows.push(div);
} }
+4 -4
View File
@@ -4,7 +4,7 @@
<meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"> <meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">
<title>Member area | InstantAdPay</title> <title>Member area | InstantAdPay</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Sora:wght@600;700;800&display=swap"> <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Sora:wght@600;700;800&display=swap">
<link rel="stylesheet" href="/assets/site.css?v=20260907g"> <link rel="stylesheet" href="/assets/site.css?v=20260907h">
</head> </head>
<body class="bo-body"> <body class="bo-body">
@@ -641,9 +641,9 @@
</div> </div>
</div> </div>
</div> </div>
<script src="/assets/common.js?v=20260907g"></script> <script src="/assets/common.js?v=20260907h"></script>
<script src="/assets/wallet.js?v=20260907f"></script> <script src="/assets/wallet.js?v=20260907f"></script>
<script src="/assets/my.js?v=20260907g"></script> <script src="/assets/my.js?v=20260907h"></script>
<script src="/assets/chat.js?v=20260907g"></script> <script src="/assets/chat.js?v=20260907h"></script>
</body> </body>
</html> </html>