fix: Don't render levelNum under real level if 0

This commit is contained in:
zkldi
2022-04-24 10:42:54 +01:00
parent 215cfbb2c6
commit 6ddea6a8e3
@@ -57,9 +57,9 @@ export default function DifficultyCell({
<span className={!alwaysShort ? "d-lg-none" : ""}>
{FormatDifficultyShort(chart, game)}
</span>
{chart.levelNum.toString() !== chart.level && !chart.level.endsWith(".0") && (
<Muted>{chart.levelNum.toString()}</Muted>
)}
{chart.levelNum.toString() !== chart.level &&
!chart.level.endsWith(".0") &&
chart.levelNum && <Muted>{chart.levelNum.toString()}</Muted>}
{"isHot" in chart.data && chart.data.isHot && (
<QuickTooltip tooltipContent="This chart is from the latest version of the game!">
<div>