From aba1e2d736466915d1f8204c8ab72ccc59579e29 Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Fri, 23 Jul 2021 20:31:26 -0600 Subject: [PATCH] Fix the winners endpoint to work correctly. --- src/endpoints/management/winners.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/endpoints/management/winners.ts b/src/endpoints/management/winners.ts index ab12726..d41b672 100644 --- a/src/endpoints/management/winners.ts +++ b/src/endpoints/management/winners.ts @@ -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