diff options
author | Mark Powers <markppowers0@gmail.com> | 2020-04-19 19:54:30 -0500 |
---|---|---|
committer | Mark Powers <markppowers0@gmail.com> | 2020-04-19 19:54:30 -0500 |
commit | a5706caa9cd91e357085d77c62aff7107ac76fc1 (patch) | |
tree | 867445917828e64456d1a92d219286a6687e0d2d | |
parent | acf13b3af04791124d0d8cb31292505c5edf131a (diff) |
Add shuffle to answers
-rw-r--r-- | src/quiz-bunny/server.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/quiz-bunny/server.js b/src/quiz-bunny/server.js index 47aa6c2..0725fdc 100644 --- a/src/quiz-bunny/server.js +++ b/src/quiz-bunny/server.js @@ -204,6 +204,7 @@ function setUpRoutes(server, models, jwtFunctions, database) { game.answers.forEach(answer => { answer.votes = [] }) + shuffle(game.answers) game.voteCount = 0 } function endVoting(game) { |