#273 Fix tournament match submission for byes#316
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
WalkthroughThe 🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment Tip CodeRabbit can suggest fixes for GitHub Check annotations.Configure the |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In
`@src/components/MatchResultForm/components/TournamentPlayerFields/TournamentPlayerFields.tsx`:
- Around line 66-68: player1Registration is looking up the wrong user id: in
TournamentPlayerFields change the useMemo that defines player1Registration so it
finds a registration by r.userId === player1UserId (not player0UserId) and
update its dependency array to include player1UserId; this ensures the faction
auto-fill effect that reads player1Registration uses the correct player2 user id
from selectedPairing.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro
Run ID: 03b166b7-e4c7-42f1-a919-0e42a2bc6c41
📒 Files selected for processing (1)
src/components/MatchResultForm/components/TournamentPlayerFields/TournamentPlayerFields.tsx
src/components/MatchResultForm/components/TournamentPlayerFields/TournamentPlayerFields.tsx
Outdated
Show resolved
Hide resolved
…ds/TournamentPlayerFields.tsx Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Resolves: #273
Summary by CodeRabbit
New Features
Bug Fixes