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

Prevent creation of multiple duels when the network is bad #301

Open
nathanaelhoun opened this issue Oct 18, 2022 · 0 comments
Open

Prevent creation of multiple duels when the network is bad #301

nathanaelhoun opened this issue Oct 18, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@nathanaelhoun
Copy link
Member

nathanaelhoun commented Oct 18, 2022

Describe the bug

Multiple duels can be created if the user click very fast on the create duel button.

https://github.com/ValFraNath/apothiquiz/blob/main/client/src/pages/DuelCreate.jsx#L109

To Reproduce

  1. Go to Create duel
  2. Click very fast on the create button
  3. Multiple duels are created

Solution

The button should be disabled when clicked, and wait for the response to be received.

@nathanaelhoun nathanaelhoun added the bug Something isn't working label Oct 18, 2022
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

1 participant