Fix Athlete Profile Crash for Parents
Canadian Elite Volleyball Academy — Development Update • April 20, 2026
Fix Athlete Profile Crash for Parents
What & Why
Parents get "Something went wrong" every time they click "View Profile" for their child. The athlete-summary page crashes during React rendering because the coach connections API response sends different field names (, , no ) than what the frontend code tries to read (, , ). Calling on the undefined field throws a TypeError, which the error boundary catches and shows the crash screen.Done looks like
- Parents can open their child's Athlete Profile page without seeing the "Something went wrong" crash.
- Coach Connections section displays the context label and active/inactive status correctly (or is hidden when the coach name is unavailable).
- If no coach connections exist, the page renders normally (no change needed).
Out of scope
- Adding or editing coach connections from the parent view
- Changing how coach connections are stored in the database
Relevant files
- -Canadian Elite Volleyball Academy
elitevolleyball.training
No comments:
Post a Comment