Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8875132e50
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| confirmed: simulation.confirmed ?? data.confirmed, | ||
| nationalities: simulation.nationalities ?? data.nationalities, | ||
| genders: simulation.genders ?? data.genders, |
There was a problem hiding this comment.
Stop falling back to baseline on empty simulation results
When the simulated selection has fewer than two ranked pilots (for example after clicking Clear all or leaving only one ranked pilot), the API returns confirmed/nationalities/genders as undefined, but this code immediately falls back to data.*, so the UI keeps showing the original forecast and charts instead of reflecting the empty/insufficient selection. This produces incorrect WPRS output for a reachable user flow and makes the interactive controls appear ineffective.
Useful? React with 👍 / 👎.
No description provided.