Skip to content

fix: mobile contest followers list shows blank#14316

Merged
dylanjeffers merged 1 commit into
mainfrom
fix/mobile-contest-followers-blank
May 15, 2026
Merged

fix: mobile contest followers list shows blank#14316
dylanjeffers merged 1 commit into
mainfrom
fix/mobile-contest-followers-blank

Conversation

@dylanjeffers
Copy link
Copy Markdown
Contributor

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

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 14, 2026

⚠️ No Changeset found

Latest commit: 2de3c5f

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

The `enabled` option was placed before `...options` spread, so a
caller passing `{ enabled: true }` (e.g. ContestFollowersModal) could
override the `!!eventId` guard and let the query run with a null
event id. Move the guard after the spread and combine with the
caller's enabled so the eventId check always wins.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@dylanjeffers dylanjeffers force-pushed the fix/mobile-contest-followers-blank branch from c7903c5 to 2de3c5f Compare May 15, 2026 00:46
@dylanjeffers dylanjeffers merged commit 2cc37c3 into main May 15, 2026
14 checks passed
@dylanjeffers dylanjeffers deleted the fix/mobile-contest-followers-blank branch May 15, 2026 00:53
@github-actions
Copy link
Copy Markdown
Contributor

🌐 Web preview ready

Preview URL: https://audius-web-preview-pr-14316.audius.workers.dev

Unique preview for this PR (deployed from this branch).
Workflow run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant