aboutsummaryrefslogtreecommitdiffstats
path: root/frontend/src/components/displays/GenericScoreDisplay.tsx
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2025-10-13 12:13:50 -0700
committerPinapelz <yukais@pinapelz.com>2025-10-13 12:13:50 -0700
commitea48ded120f33c6bfde7a70e9846087e132971c7 (patch)
treee990b769ebf0be809843e86d1c93422ccc92fb0d /frontend/src/components/displays/GenericScoreDisplay.tsx
parenta2dd1a1f29e6513d48bc7f332f9c074e43a34d1a (diff)
remove unused primaryKey from score displays
Diffstat (limited to 'frontend/src/components/displays/GenericScoreDisplay.tsx')
-rw-r--r--frontend/src/components/displays/GenericScoreDisplay.tsx6
1 files changed, 1 insertions, 5 deletions
diff --git a/frontend/src/components/displays/GenericScoreDisplay.tsx b/frontend/src/components/displays/GenericScoreDisplay.tsx
index 2e5a1aa..84fe492 100644
--- a/frontend/src/components/displays/GenericScoreDisplay.tsx
+++ b/frontend/src/components/displays/GenericScoreDisplay.tsx
@@ -65,7 +65,6 @@ const ScoreDisplay: React.FC<ScoreDisplayProps> = ({
num_players: "Players"
};
- const primaryKeys = ["title", "artist", "song"];
const mainStatKeys = [
"score",
"difficulty",
@@ -177,19 +176,16 @@ const ScoreDisplay: 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,
@@ -275,7 +271,7 @@ const ScoreDisplay: 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));
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage