From 220982c6ef6f3a7e98a766a59bbc10e7c4daa558 Mon Sep 17 00:00:00 2001 From: zkldi Date: Sun, 14 Apr 2024 00:50:13 +0100 Subject: [PATCH] fix: hide duplicates in new lamps viewer (#1035) --- client/src/components/sessions/SessionRaiseBreakdown.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/src/components/sessions/SessionRaiseBreakdown.tsx b/client/src/components/sessions/SessionRaiseBreakdown.tsx index 3981dd410..c9510f833 100644 --- a/client/src/components/sessions/SessionRaiseBreakdown.tsx +++ b/client/src/components/sessions/SessionRaiseBreakdown.tsx @@ -155,7 +155,9 @@ function SessionScoreStatBreakdown({ if (newEnums[metric][enumValue]) { const alreadyInArray = newEnums[metric][enumValue].find( - (e) => e.score.scoreID === score.scoreID + (e) => + e.score.scoreID === score.scoreID || + e.score.chartID === score.chartID ); if (