Problem
In app/(tabs)/settings.tsx (line 402), handleSignOut() calls clearUser() and clearAuth() but does NOT call useWalletStore.getState().disconnect(). The WalletConnect session remains active and persisted.
User impact: After signing out, the wallet session is still active. The next user who opens the app will see the previous user's wallet still connected.
Root Cause
The sign-out flow was implemented before the wallet store was connected.
What To Build
- Call
useWalletStore.getState().disconnect() in the sign-out handler
- Also clear loans store on sign-out
- Verify all store state is cleaned up
Files To Touch
app/(tabs)/settings.tsx — line 402 add wallet disconnect
Acceptance Criteria
Mandatory Checks
Problem
In
app/(tabs)/settings.tsx(line 402),handleSignOut()callsclearUser()andclearAuth()but does NOT calluseWalletStore.getState().disconnect(). The WalletConnect session remains active and persisted.User impact: After signing out, the wallet session is still active. The next user who opens the app will see the previous user's wallet still connected.
Root Cause
The sign-out flow was implemented before the wallet store was connected.
What To Build
useWalletStore.getState().disconnect()in the sign-out handlerFiles To Touch
app/(tabs)/settings.tsx— line 402 add wallet disconnectAcceptance Criteria
Mandatory Checks