Member area: loading spinner instead of flashing the sign-in card
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
+4
-1
@@ -486,7 +486,10 @@
|
||||
document.getElementById('memberArea').classList.toggle('side-open'));
|
||||
|
||||
async function render() {
|
||||
const me = await IAP.refreshNavWallet();
|
||||
// while /api/me answers, show a spinner instead of flashing the sign-in card at a signed-in member
|
||||
let me = null;
|
||||
try { me = await IAP.refreshNavWallet(); } catch (e) { me = null; }
|
||||
if ($('bootSpin')) $('bootSpin').hidden = true;
|
||||
// one way in: email. A wallet-only session (no account) is sent back to the
|
||||
// email card with a finish-setup note; verifying the code links that wallet.
|
||||
const walletOnly = !!(me && me.signedIn && !me.email);
|
||||
|
||||
Reference in New Issue
Block a user