summaryrefslogtreecommitdiff
path: root/src/Highlights.vue
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2018-07-20 17:09:23 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2018-12-13 17:09:32 +0100
commita9a468bd18f56924affe51188a857c5595fc858d (patch)
treefc6908227c37be9a3a3cfc34768d614e30c6e795 /src/Highlights.vue
parentbaf2f9ee1ff66783c39b510c8ab3ac3f4a80a3f9 (diff)
downloadbrokentalents-a9a468bd18f56924affe51188a857c5595fc858d.tar.gz
brokentalents-a9a468bd18f56924affe51188a857c5595fc858d.zip
Fix Wrong pick/win rates being calculated in different places
Diffstat (limited to 'src/Highlights.vue')
-rw-r--r--src/Highlights.vue4
1 files changed, 2 insertions, 2 deletions
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>