Coach directs: Pay it forward is offered to any direct with a linked wallet who has not bought a package yet, including directs who already switched payouts on (the gift funds the first package, not the activation)

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-10-07 10:14:41 -05:00
parent 2a96d5c672
commit ca065e456e
3 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -77,7 +77,9 @@ async function coachView(email) {
// no sponsor (or a different one) is in this line on the site but pays this member nothing.
c.bound = c.onchainSponsorId == null ? null : (myId > 0 && c.onchainSponsorId === myId);
c.free = !d.memberId; // still free: can be released to the holding tank (pay it forward)
c.address = (!d.memberId && d.address) ? d.address : null; // linked wallet of a free direct: the PIF gift target
// PIF gift target: a direct with a linked wallet who has NOT bought a package yet (rung < 3). Switching payouts on
// no longer hides the button (Marty 2026-10-07: a prospect with payouts on still needed his first $20).
c.address = (d.address && c.rung < 3) ? d.address : null;
out.push(Object.assign({ email: d.email, name: d.username ? '@' + d.username : (d.memberId ? 'member #' + d.memberId : d.email.replace(/^(.).*(@.*)$/, '$1***$2')), memberId: d.memberId || 0 }, c));
}
// most actionable first: stalled lowest rung, then quiet days