From b41dc65aebf4a0558dcf3cf128246b7cf84d6790 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 18 Jan 2026 17:50:59 +0000 Subject: [PATCH] fix: properly clear wallet state on disconnect and update copy Changes: - Clear all wallet state when disconnecting (transactions, walletInfo, loading flags) - Previously only cleared state on connect, leaving stale data visible - Remove "Mutiny" mention from connection dialog copy - Update to generic "NWC wallet provider" text Now when you disconnect the wallet with the window open, it properly clears all data and returns to the "No Wallet Connected" state. --- src/components/ConnectWalletDialog.tsx | 4 ++-- src/components/WalletViewer.tsx | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/components/ConnectWalletDialog.tsx b/src/components/ConnectWalletDialog.tsx index c8c1c66..3e985a9 100644 --- a/src/components/ConnectWalletDialog.tsx +++ b/src/components/ConnectWalletDialog.tsx @@ -129,8 +129,8 @@ export default function ConnectWalletDialog({

- Enter your wallet connection string. You can get this from your - wallet provider (Alby, Mutiny, etc.) + Enter your wallet connection string. You can get this from your NWC + wallet provider.

{error && ( diff --git a/src/components/WalletViewer.tsx b/src/components/WalletViewer.tsx index 0628ade..393417a 100644 --- a/src/components/WalletViewer.tsx +++ b/src/components/WalletViewer.tsx @@ -252,6 +252,15 @@ export default function WalletViewer() { setTxLoadFailed(false); setTransactions([]); setWalletInfo(null); + } else { + // Clear all state when wallet disconnects + setTxLoadAttempted(false); + setTxLoadFailed(false); + setTransactions([]); + setWalletInfo(null); + setLoading(false); + setLoadingMore(false); + setHasMore(true); } }