Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when trying to add a round to a Swiss tournament #577

Closed
avsilva opened this issue Mar 1, 2024 · 3 comments
Closed

Error when trying to add a round to a Swiss tournament #577

avsilva opened this issue Mar 1, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@avsilva
Copy link

avsilva commented Mar 1, 2024

When I click the button "Add Round" on a Swiss tournament I get the following error:

Application error: a client-side exception has occurred (see the browser console for more information).

@robigan
Copy link
Contributor

robigan commented Mar 17, 2024

Well what's the browser console error?

@avsilva
Copy link
Author

avsilva commented Apr 3, 2024

The console error is: TypeError: upcoming_match.elo_diff.toFixed is not a function
on line src/components/tables/upcoming_matches.tsx (63:5). more precisely on
<td>{upcoming_match.elo_diff.toFixed(0)}</td>

The elo_diff value is a string so toFixed cannot be applied. If I change to <td>{Number(upcoming_match.elo_diff).toFixed(0)}</td> the problem is solved. Can you confirm?

@evroon evroon added the bug Something isn't working label May 4, 2024
@evroon
Copy link
Owner

evroon commented May 4, 2024

You're right, I fixed this in: #687
If it still happens, please reopen this

@evroon evroon closed this as completed May 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants