Skip to content

Commit

Permalink
fix: bug where turing justification isn't reset after submit
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinjosethomas committed Nov 27, 2024
1 parent fd8fc81 commit 5ac04b6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/hooks/useTuringController/useTuringController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export const useTuringController = () => {
...turingGames,
[game.id]: { ...game, result },
})
commentController[1]('')
// to avoid race conditions on the server, sleep
await new Promise((r) => setTimeout(r, 500))
incrementStats(1, result.correct ? 1 : 0)
Expand Down

0 comments on commit 5ac04b6

Please sign in to comment.