mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-22 03:07:04 +02:00
fix: average tiers not showing up in /stats
This commit is contained in:
1 parent
f134efa1e8
commit
8b9f665d47
15 files changed
+44
-28
No files matched your search
@@ -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',
|
||||
|
||||
Reference in new issue
Block a user