mirror of
https://gitea.tendokyu.moe/pinapelz/Mirage.git
synced 2026-10-11 00:48:12 +03:00
fix: handle legacy dancerush score difficulties on song display
This commit is contained in:
@@ -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,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user