From 749312ed2a13ad33e34d1e0913a0afd1218c030d Mon Sep 17 00:00:00 2001
From: Pinapelz <yukais@pinapelz.com>
Date: Mon, 13 Oct 2025 13:06:52 -0700
Subject: fix: handle legacy dancerush score difficulties  on song display

---
 frontend/src/components/modals/SongInfoDisplay.tsx | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

(limited to 'frontend/src/components/modals/SongInfoDisplay.tsx')

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,
           });
         }
       }
-- 
cgit v1.2.3

