Fix: email-only members were locked out of the members area

refreshNavWallet assumed every signed-in session has a wallet address and
threw on null for email-only members; the catch returned null and render()
treated the member as signed out even though the session and cookie were
valid. Nav now shows the email (or member badge) when no wallet is linked.
Verified with a full browser cycle: session landing, logout, fresh code
sign-in. Assets v=20260904k.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-09-04 15:27:08 -05:00
parent a386c8e3a3
commit 547bff0d05
5 changed files with 23 additions and 20 deletions
+4 -4
View File
@@ -5,7 +5,7 @@
<title>The contract | InstantAdPay</title>
<meta name="description" content="Plain-language review of the InstantAdPay settlement contract: what it does, what nobody can change, what the operator can and cannot touch, and how to verify all of it yourself.">
<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=20260904j">
<link rel="stylesheet" href="/assets/site.css?v=20260904k">
</head>
<body>
<div class="wrap">
@@ -129,8 +129,8 @@
<div class="small">Advertising services with a performance referral program. Not an investment product; no income guarantees. Crypto transactions are irreversible. Never spend what you cannot afford.</div>
</footer>
</div>
<script src="/assets/common.js?v=20260904j"></script>
<script src="/assets/contract.js?v=20260904j"></script>
<script src="/assets/chat.js?v=20260904j"></script>
<script src="/assets/common.js?v=20260904k"></script>
<script src="/assets/contract.js?v=20260904k"></script>
<script src="/assets/chat.js?v=20260904k"></script>
</body>
</html>