fix: /stats now uses double hyphens like /today for WN8

This commit is contained in:
TresAbhi committed 2023-06-03 01:29:42 +00:00
1 parent 84056d7036
commit 843cc8e861
3 files changed
+13 -3

No files matched your search

+6 -2
View File
@@ -17,10 +17,14 @@ export default function GenericAllStats({
['Winrate', `${(100 * (stats.wins / stats.battles)).toFixed(2)}%`],
[
'WN8',
supplementaryStats?.WN8.toFixed(0),
supplementaryStats
? getWN8Percentile(supplementaryStats.WN8)
? supplementaryStats.WN8 === undefined
? '--'
: supplementaryStats.WN8.toFixed(0)
: undefined,
supplementaryStats?.WN8 === undefined
? undefined
: getWN8Percentile(supplementaryStats.WN8),
],
[
'Survival',