Skip to content

Commit

Permalink
Shuffled array
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-qg committed Apr 29, 2024
1 parent 4fe11ff commit 9f7d507
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webapp/src/components/game/Calculator.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,11 @@ const Calculator = () => {
}
}

shuffleArray(option);
let shuffled = shuffleArray(option);
questions.push(
{
q: `${num1} ${operator} ${num2}`,
options: option,
options: shuffled,
correctAnswer: correctAnswer
}
);
Expand Down

0 comments on commit 9f7d507

Please sign in to comment.