From f8bb84de1c0cfe08496fbe01916046cbc49f1800 Mon Sep 17 00:00:00 2001 From: martbost Date: Sat, 26 Sep 2026 09:11:56 -0500 Subject: [PATCH] who-gets-paid: buyer row names the level actually being bought Co-Authored-By: Claude Opus 5.5 --- public/who-gets-paid.html | 2 +- public/who-gets-paid.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/who-gets-paid.html b/public/who-gets-paid.html index 34597a2..d81b21e 100644 --- a/public/who-gets-paid.html +++ b/public/who-gets-paid.html @@ -106,6 +106,6 @@ if (u.level > levelIndex && u.directCount >= 2) { - + diff --git a/public/who-gets-paid.js b/public/who-gets-paid.js index 885db6d..8a5c693 100644 --- a/public/who-gets-paid.js +++ b/public/who-gets-paid.js @@ -38,7 +38,7 @@ function draw(li, upto) { var r = evaluate(li), U = data.uplines, b = data.buyer; - var html = '
  • buyer#' + b.id + '' + lvName(b.level) + ' · ' + b.directCount + ' direct' + (b.directCount === 1 ? '' : 's') + ' · buying ' + lvName(li + 1) + '
  • '; + var html = '
  • buyer#' + b.id + '' + lvName(b.level) + ' · ' + b.directCount + ' direct' + (b.directCount === 1 ? '' : 's') + ' · buying ' + lvName(li + 2) + '
  • '; for (var i = 0; i < U.length; i++) { var u = U[i], e = eff(u), st = (i < r.steps.length && i < upto) ? r.steps[i] : null; var cls = st ? st.s : 'idle', tag = st ? (st.s === 'skip' ? 'skipped' : st.s === 'fail' ? 'passed over' : 'paid') : '';