From c9ca64aafb06de8c31b46efd9df94e74cea350fb Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Wed, 8 Oct 2025 01:34:39 -0700 Subject: frontend: hide certain irrelevant keys from generic score display --- frontend/src/components/displays/GenericScoreDisplay.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'frontend/src/components') diff --git a/frontend/src/components/displays/GenericScoreDisplay.tsx b/frontend/src/components/displays/GenericScoreDisplay.tsx index 05d9f1e..054f7de 100644 --- a/frontend/src/components/displays/GenericScoreDisplay.tsx +++ b/frontend/src/components/displays/GenericScoreDisplay.tsx @@ -76,6 +76,7 @@ const ScoreDisplay: React.FC = ({ "grade", ]; const expandableKeys = ["judgements", "optional"]; + const skipKeys = ["user", "username"] // get ?game= const internalGameName =new URLSearchParams(window.location.search).get("game") || "dancerush"; // eslint-disable-next-line @typescript-eslint/no-explicit-any @@ -273,8 +274,10 @@ const ScoreDisplay: React.FC = ({ {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, timestamp } = + const { primary, mainStats, expandable, others: rawOthers, timestamp } = getScoreEntries(score); + const others = rawOthers.filter(([key]) => !skipKeys.includes(key)); + return (