diff options
| author | Pinapelz <yukais@pinapelz.com> | 2025-10-13 13:06:52 -0700 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2025-10-13 13:06:52 -0700 |
| commit | 749312ed2a13ad33e34d1e0913a0afd1218c030d (patch) | |
| tree | f74ddb2cb160b80e15bb13c16707d86b6844912a | |
| parent | ace6db898b5aa36c27a16bbcd5eaec52f8866270 (diff) | |
fix: handle legacy dancerush score difficulties on song display
| -rw-r--r-- | frontend/src/components/modals/SongInfoDisplay.tsx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/frontend/src/components/modals/SongInfoDisplay.tsx b/frontend/src/components/modals/SongInfoDisplay.tsx index 946b209..6dc3561 100644 --- a/frontend/src/components/modals/SongInfoDisplay.tsx +++ b/frontend/src/components/modals/SongInfoDisplay.tsx @@ -40,9 +40,13 @@ const SongInfoDisplay = ({ if (score.difficulty !== undefined) { const diffKey = (score.diff_lamp as string) || (score.difficulty as string).toString(); if (!difficultyMap.has(diffKey)) { + const level = score.diff_lamp + ? (score.difficulty as number) + : (score.level as number); + difficultyMap.set(diffKey, { difficulty: diffKey, - level: score.difficulty as number, + level: level, }); } } |
