From ea48ded120f33c6bfde7a70e9846087e132971c7 Mon Sep 17 00:00:00 2001
From: Pinapelz <yukais@pinapelz.com>
Date: Mon, 13 Oct 2025 12:13:50 -0700
Subject: remove unused primaryKey from score displays

---
 frontend/src/components/displays/MusicDiverScoreDisplay.tsx | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

(limited to 'frontend/src/components/displays/MusicDiverScoreDisplay.tsx')

diff --git a/frontend/src/components/displays/MusicDiverScoreDisplay.tsx b/frontend/src/components/displays/MusicDiverScoreDisplay.tsx
index 6342777..4e7f41b 100644
--- a/frontend/src/components/displays/MusicDiverScoreDisplay.tsx
+++ b/frontend/src/components/displays/MusicDiverScoreDisplay.tsx
@@ -65,7 +65,6 @@ const MusicDiverDisplay: React.FC<ScoreDisplayProps> = ({
     num_players: "Players"
   };
 
-  const primaryKeys = ["title", "artist", "song"];
   const mainStatKeys = [
     "score",
     "level",
@@ -176,20 +175,16 @@ const MusicDiverDisplay: React.FC<ScoreDisplayProps> = ({
     const entries = Object.entries(score).filter(
       ([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,
@@ -275,7 +270,7 @@ const MusicDiverDisplay: 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));
 
-- 
cgit v1.2.3

