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

Playing the first card too quickly causes a fatal exception #84

Open
jayktaylor opened this issue Apr 1, 2022 · 1 comment
Open

Playing the first card too quickly causes a fatal exception #84

jayktaylor opened this issue Apr 1, 2022 · 1 comment

Comments

@jayktaylor
Copy link

Describe the bug
It appears that playing the first card in a new round too quickly results in a fatal exception which crashes the app.

To Reproduce
Steps to reproduce the behavior:

  1. Click 'Start game'
  2. Quickly drag the card to the timeline
  3. When game over, hit 'Play again' and repeat step 2. If quick enough, the app will crash.

Expected behavior
The app won't crash.

Screenshots
Screenshot 2022-04-01 at 03 07 59
Screenshot 2022-04-01 at 03 08 13

Additional context
The exception appears to be here in board.tsx: https://github.com/tom-james-watson/wikitrivia/blob/master/components/board.tsx#L113

item is undefined when this error is thrown. I've tried to do a little bit of debugging, but it seems like a weird race condition that I can't put my finger on.

@iggalili
Copy link

keeps happening for me too

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

No branches or pull requests

2 participants