From 6ddea6a8e3375b849fbaf9dee64fbb2281dbcaae Mon Sep 17 00:00:00 2001
From: zkldi <20380519+zkldi@users.noreply.github.com>
Date: Sun, 24 Apr 2022 10:42:54 +0100
Subject: [PATCH] fix: Don't render levelNum under real level if 0
---
client/src/components/tables/cells/DifficultyCell.tsx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/client/src/components/tables/cells/DifficultyCell.tsx b/client/src/components/tables/cells/DifficultyCell.tsx
index c7944372b..6f16de8d5 100644
--- a/client/src/components/tables/cells/DifficultyCell.tsx
+++ b/client/src/components/tables/cells/DifficultyCell.tsx
@@ -57,9 +57,9 @@ export default function DifficultyCell({
{FormatDifficultyShort(chart, game)}
- {chart.levelNum.toString() !== chart.level && !chart.level.endsWith(".0") && (
- {chart.levelNum.toString()}
- )}
+ {chart.levelNum.toString() !== chart.level &&
+ !chart.level.endsWith(".0") &&
+ chart.levelNum && {chart.levelNum.toString()}}
{"isHot" in chart.data && chart.data.isHot && (