summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2018-07-19 11:09:01 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2018-12-13 17:09:30 +0100
commit5207fec82769c6f9474ab8715a8f2a30b54da902 (patch)
tree3e1a09ca686c02b3da38d5f5952ddbf10eb22e9c /src
parent25db34a00d354604c324c5f90c756dbeba885f08 (diff)
downloadbrokentalents-5207fec82769c6f9474ab8715a8f2a30b54da902.tar.gz
brokentalents-5207fec82769c6f9474ab8715a8f2a30b54da902.zip
Fix NaNs breaking highlights
Diffstat (limited to 'src')
-rw-r--r--src/ReportService.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ReportService.js b/src/ReportService.js
index 0ac4239..acfbea2 100644
--- a/src/ReportService.js
+++ b/src/ReportService.js
@@ -116,19 +116,19 @@ for(let mode of modes) {
.filter((entry) => maps.getTalentRarity(entry.Talent) == 'Legendary' && 100 * playersPerMatch * entry.TotalPicks / totalPicks.get(mode))
.sort((entry1, entry2) => entry2.TotalWinner - entry1.TotalWinner)[0]);
topLowLevel.set(mode, reports.get(mode)
- .filter((entry) => !entry.SampleTooSmall && !entry.VarianceTooLarge)
+ .filter((entry) => !entry.SampleTooSmall && !entry.VarianceTooLarge && !!entry.TalentWinrateBase)
.sort((entry1, entry2) => entry2.TalentWinrateBase - entry1.TalentWinrateBase)[0]);
topScaling.set(mode, reports.get(mode)
- .filter((entry) => !entry.SampleTooSmall && !entry.VarianceTooLarge)
+ .filter((entry) => !entry.SampleTooSmall && !entry.VarianceTooLarge && !!entry.TalentWinrateLevelScaling)
.sort((entry1, entry2) => entry2.TalentWinrateLevelScaling - entry1.TalentWinrateLevelScaling)[0]);
topKillDeathPoints.set(mode, reports.get(mode)
- .filter((entry) => !entry.SampleTooSmall && !entry.VarianceTooLarge)
+ .filter((entry) => !entry.SampleTooSmall && !entry.VarianceTooLarge && !!entry.KillDeathPoints)
.sort((entry1, entry2) => entry2.KillDeathPoints - entry1.KillDeathPoints)[0]);
topObjectivePoints.set(mode, reports.get(mode)
- .filter((entry) => !entry.SampleTooSmall && !entry.VarianceTooLarge)
+ .filter((entry) => !entry.SampleTooSmall && !entry.VarianceTooLarge && !!entry.ObjectivePoints)
.sort((entry1, entry2) => entry2.ObjectivePoints - entry1.ObjectivePoints)[0]);
topBlitzPointsDelta.set(mode, reports.get(mode)
- .filter((entry) => !entry.SampleTooSmall && !entry.VarianceTooLarge)
+ .filter((entry) => !entry.SampleTooSmall && !entry.VarianceTooLarge && !!entry.BlitzPointsDelta)
.sort((entry1, entry2) => entry2.BlitzPointsDelta - entry1.BlitzPointsDelta)[0]);
if (actors.length == 0) {