Launch checklist: read buyer count and referrals from the dashboard endpoint

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-09-11 07:29:01 -05:00
parent 48dcd71290
commit cdb580c1f4
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -5,6 +5,8 @@
try { await IAP.renderNav('training'); } catch (e) {}
let me = null, cfg = {};
try { me = await (await fetch('/api/me')).json(); } catch (e) {}
// buyerCount and the referral list live on the dashboard endpoint; merge it in
if (me && me.signedIn) { try { const d = await (await fetch('/api/my/dashboard')).json(); if (d && !d.error) me = Object.assign({}, me, d, { signedIn: true, email: me.email }); } catch (e) {} }
try { cfg = await IAP.getConfig(); } catch (e) {}
const signedIn = !!(me && me.signedIn && me.email);
$('gate').style.display = signedIn ? 'none' : 'block';
+1 -1
View File
@@ -86,6 +86,6 @@
</footer>
</div>
<script src="/assets/common.js?v=20260911b"></script>
<script src="/assets/launch.js?v=20260911a"></script>
<script src="/assets/launch.js?v=20260911b"></script>
</body>
</html>