You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After f0a617a, tournament is immutable state
(new copy on changes), not a mutable ref, so the renderExtraPlayerActions
callback wasn't being kept up-to-date when the tournament changed. Split it
out to its own `useEffect` that updates when the relevant tournament fields do.
Tested:
- Director of started tournament (disqualify and adjust points)
- Director of not-started tournament (kick)
- Non-director (no actions)
- Switching between them via the search box, which reuses the same component
Fixesonline-go#2606
Describe the bug
Tournament moderation tools stopped working after f0a617a (confirmed by a git-bisect). Reported on the forums: https://forums.online-go.com/t/i-cant-disqualify-a-player-from-a-tournament-anymore/50914/.
E.g., the "Disqualify" button is missing when you click on a player.
The text was updated successfully, but these errors were encountered: