diff --git a/src/app/components/FaucetCard.tsx b/src/app/components/FaucetCard.tsx index 8a5a38d..5c39e4c 100644 --- a/src/app/components/FaucetCard.tsx +++ b/src/app/components/FaucetCard.tsx @@ -314,6 +314,27 @@ export function FaucetCard(): React.JSX.Element { // the other faucets would promise a payout nothing can make. const canPasteAddress = variant === "blacklight"; + // Rendered in BOTH connection states, on purpose. + // + // It used to live only in the not-connected branch, which had two faults. Wallet state + // rehydrates from localStorage a beat after mount, so anyone with a previously-connected + // wallet watched this section appear and then vanish as `isConnected` flipped — a visible + // flash of the new UI reverting to the old. And more seriously, they never got the feature + // at all: funding an agent's address has nothing to do with whether YOUR wallet is + // connected, but only disconnected visitors could see the field. + const pasteSection = canPasteAddress ? ( + <> +
+ + + {isConnected ? "or send to another address" : "or"} + + +
+ + + ) : null; + if (!isConnected) { return ( @@ -332,17 +353,7 @@ export function FaucetCard(): React.JSX.Element { )} - - {canPasteAddress && ( - <> -
- - or - -
- - - )} + {pasteSection}
); @@ -352,6 +363,7 @@ export function FaucetCard(): React.JSX.Element { {isL2 ? : } + {pasteSection} );