From 5f4943e02548f0a6fadd11197db4b57f1df20cc1 Mon Sep 17 00:00:00 2001 From: FoxxMD Date: Fri, 20 Mar 2026 20:47:38 +0000 Subject: [PATCH] fix(ui): Fix keys --- src/client/components/PlayData.tsx | 6 +++--- src/client/components/ScrobbleMatchResult.tsx | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/client/components/PlayData.tsx b/src/client/components/PlayData.tsx index f016be9e..7945bb85 100644 --- a/src/client/components/PlayData.tsx +++ b/src/client/components/PlayData.tsx @@ -171,13 +171,13 @@ export const PlayDatesStack = (props: { play: JsonPlayObject, dates: DisplayDate } else { const dateElements = []; if (dates.includes('played') || dates.includes('all')) { - dateElements.push(({`Played ${shortTodayAwareFormat(dayjs(play.data.playDate))}`})); + dateElements.push(({`Played ${shortTodayAwareFormat(dayjs(play.data.playDate))}`})); if (play.data.playDateCompleted !== undefined) { - dateElements.push(({`Played Until ${shortTodayAwareFormat(dayjs(play.data.playDateCompleted))}`})); + dateElements.push(({`Played Until ${shortTodayAwareFormat(dayjs(play.data.playDateCompleted))}`})); } } if (dates.includes('seen') || dates.includes('all')) { - dateElements.push(({`Seen ${shortTodayAwareFormat(dayjs(play.data.playDate))}`})); + dateElements.push(({`Seen ${shortTodayAwareFormat(dayjs(play.data.playDate))}`})); } datesItem = ( diff --git a/src/client/components/ScrobbleMatchResult.tsx b/src/client/components/ScrobbleMatchResult.tsx index 29a8fcc8..0abce0d3 100644 --- a/src/client/components/ScrobbleMatchResult.tsx +++ b/src/client/components/ScrobbleMatchResult.tsx @@ -49,17 +49,17 @@ export const ScrobbleMatchResult = (props: ScrobbleMatchResultProps) => { Breakdown - {match.breakdowns.map((x) => { + {match.breakdowns.map((x, index) => { if (x.includes('Time Detail')) { const sub = x.substring(15).split('|'); return ( - {sub.map((y) => {y})} + {sub.map((y, index) => {y})} ) } - return {x} + return {x} })} -- 2.51.2