0
0
Fork 0

Fix the winners endpoint to work correctly.

This commit is contained in:
Oliver-Akins 2021-07-23 20:31:26 -06:00
parent 845aa7c1ae
commit aba1e2d736

View file

@ -16,6 +16,7 @@ export default {
// New maximum, reset array of winners // New maximum, reset array of winners
if (data.votes[quote] > highest) { if (data.votes[quote] > highest) {
winners = [ data.quotes[quote] ]; winners = [ data.quotes[quote] ];
highest = data.votes[quote];
} }
// Tied highest, add to list // Tied highest, add to list