@sage-protocol/cli 0.6.3 → 0.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -620,13 +620,15 @@ class PrivyAuthWalletManager {
|
|
|
620
620
|
|
|
621
621
|
if (!ready) return <div className="card"><div className="loader"></div><p>Loading Privy...</p></div>;
|
|
622
622
|
|
|
623
|
+
// Don't show our card when not authenticated - let Privy modal be the only UI
|
|
624
|
+
if (!authenticated) {
|
|
625
|
+
return null;
|
|
626
|
+
}
|
|
627
|
+
|
|
623
628
|
return (
|
|
624
629
|
<div className="card">
|
|
625
630
|
<h1>Sage CLI Login</h1>
|
|
626
|
-
|
|
627
|
-
<p>Please log in to continue.</p>
|
|
628
|
-
) : (
|
|
629
|
-
<div>
|
|
631
|
+
<div>
|
|
630
632
|
<p>Logged in as {user?.email?.address || 'User'}</p>
|
|
631
633
|
{status && (
|
|
632
634
|
<div className={"status " + (status.includes('Error') || status.includes('Failed') ? 'error' : 'success')}>
|
|
@@ -646,8 +648,7 @@ class PrivyAuthWalletManager {
|
|
|
646
648
|
</button>
|
|
647
649
|
</div>
|
|
648
650
|
)}
|
|
649
|
-
|
|
650
|
-
)}
|
|
651
|
+
</div>
|
|
651
652
|
</div>
|
|
652
653
|
);
|
|
653
654
|
}
|