From a9a468bd18f56924affe51188a857c5595fc858d Mon Sep 17 00:00:00 2001
From: schneefux <schneefux+commit@schneefux.xyz>
Date: Fri, 20 Jul 2018 17:09:23 +0200
Subject: Fix Wrong pick/win rates being calculated in different places

---
 src/Highlights.vue | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/Highlights.vue')

diff --git a/src/Highlights.vue b/src/Highlights.vue
index 7b2c375..0b3be87 100644
--- a/src/Highlights.vue
+++ b/src/Highlights.vue
@@ -14,7 +14,7 @@
                   title="Trending"
                   type="Total Pick Rate"
                   label="%"
-                  :value="(100 * playersPerMatch * stats.topPick.Count / stats.totalPicks).toFixed(2)"
+                  :value="(100 * playersPerMatch * stats.topPick.TotalPicks / stats.totalPicks).toFixed(2)"
                   :entry="stats.topPick" />
     </div>
 
@@ -23,7 +23,7 @@
                   title="Beginner"
                   type="Level 1 Win Rate"
                   label="%"
-                  :value="Math.round(100 * stats.topLowLevel.Winner)"
+                  :value="Math.round(100 * stats.topLowLevel.TalentWinrateBase)"
                   :entry="stats.topLowLevel" />
     </div>
 
-- 
cgit v1.3.1

