From 8821058c0a1e5bd8374e6d15ed0ece770ea4ab9c Mon Sep 17 00:00:00 2001 From: TerryM Date: Tue, 2 Jun 2026 04:30:27 +0800 Subject: [PATCH] fix: reset TokenPocket request state on expired/failed poll Clear tpRequest when a TokenPocket login expires or fails so the mobile UI returns to the initial state instead of showing a stuck waiting spinner alongside the error. Co-Authored-By: Claude Opus 4.8 (1M context) --- src/wallet/WalletLoginModal.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wallet/WalletLoginModal.tsx b/src/wallet/WalletLoginModal.tsx index 0ea3266..681eb42 100644 --- a/src/wallet/WalletLoginModal.tsx +++ b/src/wallet/WalletLoginModal.tsx @@ -97,6 +97,7 @@ export function WalletLoginModal() { } if (result.status === "expired" || result.status === "failed") { setState("idle"); + setTpRequest(null); setError(result.error || t("walletTpExpired")); } } catch (err) {