fix: average tiers not showing up in /stats

This commit is contained in:
TresAbhi committed 2023-06-23 16:58:17 +00:00
1 parent f134efa1e8
commit 8b9f665d47
15 files changed
+44 -28

No files matched your search

+7 -6
View File
@@ -1,4 +1,5 @@
import getWN8Percentile from '../core/blitz/getWN8Percentile.js';
import isNumber from '../core/process/isNumber.js';
import { AllStats, SupplementaryStats } from '../types/accountInfo.js';
import GenericStats from './GenericStats/index.js';
@@ -22,13 +23,13 @@ export default function GenericAllStats({
[
'WN8',
supplementaryStats
? supplementaryStats.WN8 === undefined
? '--'
: supplementaryStats.WN8.toFixed(0)
? isNumber(supplementaryStats.WN8)
? supplementaryStats.WN8!.toFixed(0)
: '--'
: undefined,
isNumber(supplementaryStats?.WN8)
? getWN8Percentile(supplementaryStats!.WN8!)
: undefined,
supplementaryStats?.WN8 === undefined
? undefined
: getWN8Percentile(supplementaryStats.WN8),
],
[
'Survival',