From a5706caa9cd91e357085d77c62aff7107ac76fc1 Mon Sep 17 00:00:00 2001 From: Mark Powers Date: Sun, 19 Apr 2020 19:54:30 -0500 Subject: Add shuffle to answers --- src/quiz-bunny/server.js | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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) { -- cgit v1.2.3