diff --git a/chain.js b/chain.js index 1aaabc9..dec6a29 100644 --- a/chain.js +++ b/chain.js @@ -714,7 +714,7 @@ function getOrgRouting(rootId, ownerIds) { if (!up || up === CROOT) return null; const u = M[up]; if (!u) return null; if (i < li) { up = u.uplineId; continue; } - if ((u.level || 1) > li + 1 && (u.directCount || 0) >= 2) return up; + if ((u.level || 1) > li && (u.directCount || 0) >= 2) return up; // contract: level > levelIndex (at or above the level the buyer LEAVES); was li + 1 until 2026-11-19 up = u.uplineId; } return null;