Skip to content

Commit

Permalink
Try to solve bug updating the prop when starting a round
Browse files Browse the repository at this point in the history
  • Loading branch information
PabloGOP committed Apr 22, 2024
1 parent 676e9ef commit 94c8851
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions webapp/src/pages/Game.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ const Game = () => {
// gets a random question from the database and initializes button states to null
const startNewRound = async () => {
setAnswered(false);
setPassNewRound(false);

// Updates current language
setCurrentLanguage(i18n.language);
Expand Down

0 comments on commit 94c8851

Please sign in to comment.