Problem
MaskedBalance hides values based on useProfileStore.profile.streamerMode, but /settings also exposes a local streamerMode toggle in useSettingsStore. Toggling streamer mode in Settings does not immediately affect navbar balances unless profile data happens to match.
Scope
- Treat streamer mode as enabled when either the persisted profile flag or the settings store flag is true
- When Settings toggles streamer mode, update the local settings mirror instantly (existing) and ensure MaskedBalance reacts
- Document the precedence in a short code comment
- Add tests for both entry points
Acceptance criteria
Files
src/components/MaskedBalance.tsx
src/store/useSettingsStore.ts
src/components/MaskedBalance.test.tsx (new or extend)
src/pages/Settings.test.tsx
Difficulty
beginner
Problem
MaskedBalancehides values based onuseProfileStore.profile.streamerMode, but/settingsalso exposes a localstreamerModetoggle inuseSettingsStore. Toggling streamer mode in Settings does not immediately affect navbar balances unless profile data happens to match.Scope
Acceptance criteria
Files
src/components/MaskedBalance.tsxsrc/store/useSettingsStore.tssrc/components/MaskedBalance.test.tsx(new or extend)src/pages/Settings.test.tsxDifficulty
beginner