From 5f7d87daf0cc20f7fbd398cde8240eeefeac690a Mon Sep 17 00:00:00 2001 From: Jordan Moore Date: Sat, 28 May 2022 00:15:03 -0500 Subject: [PATCH] feat: add project name on timeline for challenges completed RWD (#46181) --- client/src/components/profile/components/time-line.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/client/src/components/profile/components/time-line.tsx b/client/src/components/profile/components/time-line.tsx index d1ac3063453..f8eb4833576 100644 --- a/client/src/components/profile/components/time-line.tsx +++ b/client/src/components/profile/components/time-line.tsx @@ -243,6 +243,7 @@ function useIdToNameMap(): Map { challenge { fields { slug + blockName } id title @@ -268,11 +269,16 @@ function useIdToNameMap(): Map { // @ts-expect-error Graphql needs typing title, // @ts-expect-error Graphql needs typing - fields: { slug } + fields: { slug, blockName } } } }) => { - idToNameMap.set(id, { challengeTitle: title, challengePath: slug }); + idToNameMap.set(id, { + challengeTitle: `${ + title.includes('Step') ? `${blockName} - ` : '' + }${title}`, + challengePath: slug + }); } ); return idToNameMap;