File tree 2 files changed +14
-2
lines changed
src/shared/components/challenge-detail/Specification 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -172,11 +172,14 @@ export default function SideBar({
172
172
)
173
173
}
174
174
{
175
+ screeningScorecardId && screeningScorecardId . length > 0
176
+ && (
175
177
< p styleName = "link-like-paragraph" >
176
178
< a href = { `${ scorecardURL } ${ screeningScorecardId } ` } >
177
179
Screening Scorecard
178
180
</ a >
179
181
</ p >
182
+ )
180
183
}
181
184
{
182
185
< span styleName = "link-like-paragraph tooltip-container" >
Original file line number Diff line number Diff line change @@ -45,8 +45,6 @@ export default function ChallengeDetailsView(props) {
45
45
legacy,
46
46
documents,
47
47
finalSubmissionGuidelines,
48
- environment,
49
- codeRepo,
50
48
userDetails,
51
49
metadata,
52
50
events,
@@ -57,6 +55,17 @@ export default function ChallengeDetailsView(props) {
57
55
const { track, reviewScorecardId, screeningScorecardId } = legacy ;
58
56
59
57
const allowStockArt = _ . find ( metadata , { type : 'allowStockArt' } ) ;
58
+ let environment = '' ;
59
+ const environmentData = _ . find ( metadata , { type : 'environment' } ) ;
60
+ if ( environmentData ) {
61
+ environment = environmentData . value ;
62
+ }
63
+
64
+ let codeRepo = '' ;
65
+ const codeRepoData = _ . find ( metadata , { type : 'codeRepo' } ) ;
66
+ if ( codeRepoData ) {
67
+ codeRepo = codeRepoData . value ;
68
+ }
60
69
61
70
let forumLink = track . toLowerCase ( ) === 'design'
62
71
? `/?module=ThreadList&forumID=${ forumId } `
You can’t perform that action at this time.
0 commit comments