From 152894146b72830e48e800721ea6160228a9bdc1 Mon Sep 17 00:00:00 2001
From: Pinapelz <yukais@pinapelz.com>
Date: Mon, 7 Jul 2025 00:00:22 -0700
Subject: generate sha-1 hash for chart on score import

---
 frontend/src/components/displays/DancerushScoreDisplay.tsx | 12 +++---------
 1 file changed, 3 insertions(+), 9 deletions(-)

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

diff --git a/frontend/src/components/displays/DancerushScoreDisplay.tsx b/frontend/src/components/displays/DancerushScoreDisplay.tsx
index 16ba2b2..e99f6e9 100644
--- a/frontend/src/components/displays/DancerushScoreDisplay.tsx
+++ b/frontend/src/components/displays/DancerushScoreDisplay.tsx
@@ -1,4 +1,5 @@
 import React from "react";
+import { globalSkipKeys } from "../../types/constants";
 import dancerushEasyImg from "../../assets/games/dancerush/easy.webp";
 import dancerushNormalImg from "../../assets/games/dancerush/normal.webp";
 
@@ -41,13 +42,6 @@ const DancerushScoreDisplay: React.FC<ScoreDisplayProps> = ({
     miss: "Miss",
   };
 
-  const skipKeys = [
-    "id",
-    "internalname",
-    "internalName",
-    "gameInternalName",
-    "userId",
-  ];
   const primaryKeys = ["title", "artist", "song"];
   const mainStatKeys = [
     "score",
@@ -169,7 +163,7 @@ const DancerushScoreDisplay: React.FC<ScoreDisplayProps> = ({
 
   const getScoreEntries = (score: Score) => {
     const entries = Object.entries(score).filter(
-      ([key]) => !skipKeys.includes(key),
+      ([key]) => !globalSkipKeys.includes(key),
     );
 
     const primary = entries.filter(([key]) => primaryKeys.includes(key));
@@ -228,7 +222,7 @@ const DancerushScoreDisplay: React.FC<ScoreDisplayProps> = ({
   // Get all possible keys for table headers
   const allKeys = Array.from(
     new Set(scores.flatMap((score) => Object.keys(score))),
-  ).filter((key) => !skipKeys.includes(key));
+  ).filter((key) => !globalSkipKeys.includes(key));
 
   // Prioritize important keys for table display
   const tableKeys = [
-- 
cgit v1.2.3

