diff options
Diffstat (limited to 'frontend/src/components/displays/ReflecBeatScoreDisplay.tsx')
| -rw-r--r-- | frontend/src/components/displays/ReflecBeatScoreDisplay.tsx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/frontend/src/components/displays/ReflecBeatScoreDisplay.tsx b/frontend/src/components/displays/ReflecBeatScoreDisplay.tsx index 7edffd1..39ea4f7 100644 --- a/frontend/src/components/displays/ReflecBeatScoreDisplay.tsx +++ b/frontend/src/components/displays/ReflecBeatScoreDisplay.tsx @@ -67,7 +67,6 @@ const ReflecBeatScoreDisplay: React.FC<ScoreDisplayProps> = ({ num_players: "Players" }; - const primaryKeys = ["title", "artist", "song"]; const mainStatKeys = [ "score", "difficulty", @@ -184,19 +183,16 @@ const ReflecBeatScoreDisplay: React.FC<ScoreDisplayProps> = ({ ([key]) => !globalSkipKeys.includes(key), ); - const primary = entries.filter(([key]) => primaryKeys.includes(key)); const mainStats = entries.filter(([key]) => mainStatKeys.includes(key)); const expandable = entries.filter(([key]) => expandableKeys.includes(key)); const others = entries.filter( ([key]) => - !primaryKeys.includes(key) && !mainStatKeys.includes(key) && !expandableKeys.includes(key) && key !== "timestamp", ); return { - primary, mainStats, expandable, others, @@ -282,7 +278,7 @@ const ReflecBeatScoreDisplay: React.FC<ScoreDisplayProps> = ({ {sortedScores.map((score, index) => { const chartIdHash = SHA1(`${internalGameName}${score.title}${score.artist}`).toString(); // eslint-disable-next-line @typescript-eslint/no-unused-vars - const { primary, mainStats, expandable, others: rawOthers, timestamp } = + const { mainStats, expandable, others: rawOthers, timestamp } = getScoreEntries(score); const others = rawOthers.filter(([key]) => !skipKeys.includes(key)); |
