File tree Expand file tree Collapse file tree 2 files changed +20
-2
lines changed
components/GenericSubtrackDetailsModal
member-profile/tc-achievements/ChallengeWinsBanner Expand file tree Collapse file tree 2 files changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -68,9 +68,9 @@ const GenericSubtrackDetailsModal: FC<GenericSubtrackDetailsModalProps> = (props
6868 < div >
6969 < span
7070 className = 'member-stat-value'
71- style = { ratingToCSScolor ( props . genericStats ?. rank . rating || 0 ) }
71+ style = { ratingToCSScolor ( props . genericStats ?. rank ? .rating || 0 ) }
7272 >
73- { props . genericStats ?. rank . rating }
73+ { props . genericStats ?. rank ? .rating || 0 }
7474 </ span >
7575 Rating
7676 </ div >
Original file line number Diff line number Diff line change @@ -148,6 +148,11 @@ const ChallengeWinsBanner: FC<ChallengeWinsBannerProps> = (props: ChallengeWinsB
148148 ( ) => props . memberStats ?. DEVELOP ?. subTracks . find ( subTrack => subTrack . name === 'DESIGN' ) ,
149149 [ props . memberStats ] ,
150150 )
151+ const conceptStats : MemberStats | undefined
152+ = useMemo (
153+ ( ) => props . memberStats ?. DEVELOP ?. subTracks . find ( subTrack => subTrack . name === 'CONCEPTUALIZATION' ) ,
154+ [ props . memberStats ] ,
155+ )
151156
152157 const [ modalVisibilityMap , setModalVisibilityMap ] : [
153158 { [ key : string ] : boolean } ,
@@ -159,6 +164,7 @@ const ChallengeWinsBanner: FC<ChallengeWinsBannerProps> = (props: ChallengeWinsB
159164 BANNERS_OR_ICONS : false ,
160165 BUG_HUNT : false ,
161166 CODE : false ,
167+ CONCEPTUALIZATION : false ,
162168 CONTENT_CREATION : false ,
163169 COPILOT : false ,
164170 COPILOT_POSTING : false ,
@@ -506,6 +512,18 @@ const ChallengeWinsBanner: FC<ChallengeWinsBannerProps> = (props: ChallengeWinsB
506512 />
507513 ) }
508514
515+ { modalVisibilityMap . CONCEPTUALIZATION && (
516+ < GenericSubtrackDetailsModal
517+ onClose = { bind ( handleChallengeWinModalToggle , this , 'CONCEPTUALIZATION' ) }
518+ genericStats = { conceptStats }
519+ title = 'Conceptualization'
520+ profile = { props . profile }
521+ track = 'DEVELOP'
522+ subTrack = 'CONCEPTUALIZATION'
523+ chartTitle = 'Conceptualization Rating'
524+ />
525+ ) }
526+
509527 </ div >
510528 )
511529}
You can’t perform that action at this time.
0 commit comments