Fix the winners endpoint to work correctly.
This commit is contained in:
parent
845aa7c1ae
commit
aba1e2d736
1 changed files with 1 additions and 0 deletions
|
|
@ -16,6 +16,7 @@ export default {
|
|||
// New maximum, reset array of winners
|
||||
if (data.votes[quote] > highest) {
|
||||
winners = [ data.quotes[quote] ];
|
||||
highest = data.votes[quote];
|
||||
}
|
||||
|
||||
// Tied highest, add to list
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue