freeCodeCamp / chapter

A self-hosted event management tool for nonprofits
BSD 3-Clause "New" or "Revised" License
1.92k stars 360 forks source link

Chapter page doesn't update after login #2476

Closed gikf closed 1 year ago

gikf commented 1 year ago

Describe the bug:

  1. While logged out, navigate to chapter page chapters/{id}. Action buttons (ie. Join chapter) are not visible.
  2. Press login.
  3. After login action buttons are still not visible.

chapterPage uses chapterUser query, which doesn't get refetched on login. It returns chapterUser for a specific chapterId, so it might not be too feasible to refetch all chapter users for user. Some option could be using user_chapters in the meQuery, however that needs at least modifying query to get name of the chapter role.