mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +02:00
fix: stats wn8 fallback
This commit is contained in:
1 parent
83bcca7f69
commit
8ef0bfd7eb
1 file changed
+7
-6
@@ -32,14 +32,15 @@ export default function AllStatsOverview({
|
||||
}: AllStatsOverviewProps) {
|
||||
const { t, translate } = translator(locale);
|
||||
const percentile =
|
||||
supplementaryStats.WN8 === undefined
|
||||
? Percentile.VeryBad
|
||||
: getWN8Percentile(supplementaryStats.WN8);
|
||||
typeof supplementaryStats.WN8 === 'number'
|
||||
? getWN8Percentile(supplementaryStats.WN8)
|
||||
: Percentile.VeryBad;
|
||||
const color = PERCENTILE_COLORS[percentile];
|
||||
|
||||
const heroStat =
|
||||
supplementaryStats.WN8 === undefined
|
||||
? '--'
|
||||
: supplementaryStats.WN8.toFixed(0);
|
||||
typeof supplementaryStats.WN8 === 'number'
|
||||
? supplementaryStats.WN8.toFixed(0)
|
||||
: '--';
|
||||
|
||||
return (
|
||||
<div
|
||||
|
||||
Reference in new issue
Block a user