aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMark Powers <markppowers0@gmail.com>2020-04-19 19:54:30 -0500
committerMark Powers <markppowers0@gmail.com>2020-04-19 19:54:30 -0500
commita5706caa9cd91e357085d77c62aff7107ac76fc1 (patch)
tree867445917828e64456d1a92d219286a6687e0d2d /src
parentacf13b3af04791124d0d8cb31292505c5edf131a (diff)
Add shuffle to answers
Diffstat (limited to 'src')
-rw-r--r--src/quiz-bunny/server.js1
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) {