remove graph smoothing behavior, add null playerCount support

This commit is contained in:
Nick Krecklow
2020-05-11 03:10:23 -05:00
parent 19190f8d79
commit ef0c41ee1d
5 changed files with 89 additions and 51 deletions

View File

@ -149,7 +149,7 @@ export class GraphDisplayManager {
let playerCount
if (id >= serverGraphData.length) {
if (id >= serverGraphData.length || typeof serverGraphData[id] !== 'number') {
playerCount = '-'
} else {
playerCount = formatNumber(serverGraphData[id])