mirror of
https://github.com/zkldi/Tachi.git
synced 2026-09-29 18:37:58 +03:00
fix: Don't render levelNum under real level if 0
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user