Commit 2cc37c3
fix: mobile contest followers list shows blank (#14316)
## Summary
- The `enabled` option in `useEventFollowers` was placed BEFORE the
`...options` spread, so any caller passing an explicit `enabled` (e.g.
`ContestFollowersModal` with `{ enabled: isOpen }`) silently overrode
the `!!eventId` guard.
- Moved the `enabled` line AFTER the spread and combined the eventId
guard with the caller's value: `enabled: !!eventId && (options?.enabled
?? true)`. The eventId check now always wins, so the query can never run
with a null event id.
## Test plan
- [ ] Open a remix contest page on mobile
- [ ] Tap the "Followers (N)" card to push the dedicated followers
screen
- [ ] Confirm the followers list renders (avatars + handles) instead of
staying blank
- [ ] Confirm the avatar pile on the contest details tab still renders
- [ ] On web, open the contest followers modal and confirm it still
loads correctly (caller passes `{ enabled: isOpen }`)
- [ ] Follow / unfollow an event and confirm the avatar pile updates
(existing invalidation path)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 19696ab commit 2cc37c3
1 file changed
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | 43 | | |
45 | 44 | | |
46 | 45 | | |
| |||
63 | 62 | | |
64 | 63 | | |
65 | 64 | | |
66 | | - | |
| 65 | + | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
0 commit comments