diff options
Diffstat (limited to 'src/Highlights.vue')
| -rw-r--r-- | src/Highlights.vue | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Highlights.vue b/src/Highlights.vue index 02392ee..c4d288d 100644 --- a/src/Highlights.vue +++ b/src/Highlights.vue @@ -14,7 +14,7 @@ title="Trending" type="Total Pick Rate" label="%" - :value="(100 * 6 * stats.topPick.Count / stats.totalPicks).toFixed(2)" + :value="(100 * playersPerMatch * stats.topPick.Count / stats.totalPicks).toFixed(2)" :entry="stats.topPick" /> </div> @@ -77,6 +77,7 @@ import Vue from 'vue'; import TalentBox from './TalentBox.vue'; import RouterParamMixin from './RouterParamMixin.js'; +import * as maps from './maps/maps.js'; export default Vue.component('highlights', { props: [ 'reportService' ], @@ -95,6 +96,9 @@ export default Vue.component('highlights', { lowestLevelAvg: this.reportService.getLowestLevelAvg(this.selectedMode), }; }, + playersPerMatch: function() { + return maps.playersPerMatch(this.selectedMode); + }, }, components: { TalentBox, |
