Skip to content

fix(entry): skip the athlete lookup while the edit bib is empty - #444

Open
cartpauj wants to merge 1 commit into
developfrom
fix/443-no-toast-for-empty-bib
Open

cartpauj wants to merge 1 commit into
developfrom
fix/443-no-toast-for-empty-bib

Conversation

@cartpauj

Copy link
Copy Markdown
Contributor

Closes #443

What

Erasing the Bib field in the edit pane made useAthlete look up NaN, which showed a confusing "not found" toast. useAthlete now only runs its query when the bib is a real number. Saving with an empty bib is still blocked by the existing "Bib# is required" check.

The name box shows "Unknown" while the field is empty, same as before.

Tests

No unit test. The change is a single enabled guard on a React Query hook, and the renderer has no hook/DOM test setup. Lint and type check pass. Not yet checked manually in the app.

🤖 Generated with Claude Code

Erasing the bib in the edit pane made useAthlete look up NaN, which
toasted "not found". Only run the lookup for a real number; the
required-bib check already blocks saving an empty bib.

Closes #443

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cartpauj cartpauj self-assigned this Sep 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clearing the bib in the edit pane shows a "Bib NaN" not-found toast

1 participant