GPT-5 finding
Wallet disabled state does not clear stale wallet data, causing incorrect UI when previously connected
- desktop/renderer/src/components/wallet/WalletView.tsx
- desktop/renderer/src/components/wallet/WalletView.tsx
When wallet.getConfig reports disabled, refresh() returns early after setFailReason("disabled") without clearing address/balances/transactions in the store. If a prior session had set a non-null address, the UI condition (!address && !loading && failReason) is false and the normal wallet UI renders with stale data, contradicting the disabled state.
Recommendation
On the disabled path in refresh(), clear wallet state so the UI reflects the disabled status. For example, call the store’s reset() or explicitly set address to null, balances to [], and transactions to []. Also gate actions on config.enabled if needed.