Skip to content

Commit 7f09382

Browse files
sktbrdclaude
andcommitted
feat(stake): show the rewards prompt to logged-out visitors too
The site-wide lootbox was gated on a connected wallet, so the audience most likely to need the pointer — someone who has not staked at all — was the one audience that never saw it. Disconnected visitors now get the same muted "Enable rewards" button linking to /stake. /stake still renders nothing in this state: the prompt would be inviting you to the page you are already on. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent 3cda027 commit 7f09382

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

src/components/stake/MorLootbox.tsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -241,12 +241,14 @@ export function MorLootbox({
241241
[morpheus, t],
242242
);
243243

244-
if (!you) return null;
245-
246-
// Connected, but nothing accrued yet. The site-wide mount keeps the affordance
247-
// on screen so the rewards loop is discoverable from anywhere, rather than only
248-
// existing for people who already found /stake.
249-
if (!hasAction) {
244+
// Nothing to act on — either no wallet, or a wallet with nothing accrued yet.
245+
//
246+
// Both get the same invitation from the site-wide mount. Gating the prompt on
247+
// a connected wallet meant the one audience most likely to need the pointer,
248+
// someone who has not staked at all, was the one audience that never saw it.
249+
// The controlled /stake instance still renders nothing here: the prompt would
250+
// be inviting you to the page you are already on.
251+
if (!you || !hasAction) {
250252
if (!showEnablePrompt) return null;
251253
return (
252254
<div className="fixed bottom-5 right-5 z-50">

0 commit comments

Comments
 (0)