File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
src/shared/components/challenge-detail/Specification Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -43,8 +43,6 @@ export default function ChallengeDetailsView(props) {
43
43
legacy,
44
44
documents,
45
45
finalSubmissionGuidelines,
46
- environment,
47
- codeRepo,
48
46
userDetails,
49
47
metadata,
50
48
events,
@@ -55,6 +53,17 @@ export default function ChallengeDetailsView(props) {
55
53
const { track, reviewScorecardId, screeningScorecardId } = legacy ;
56
54
57
55
const allowStockArt = _ . find ( metadata , { type : 'allowStockArt' } ) ;
56
+ let environment = '' ;
57
+ const environmentData = _ . find ( metadata , { type : 'environment' } ) ;
58
+ if ( environmentData ) {
59
+ environment = environmentData . value ;
60
+ }
61
+
62
+ let codeRepo = '' ;
63
+ const codeRepoData = _ . find ( metadata , { type : 'codeRepo' } ) ;
64
+ if ( codeRepoData ) {
65
+ codeRepo = codeRepoData . value ;
66
+ }
58
67
59
68
let forumLink = track . toLowerCase ( ) === 'design'
60
69
? `/?module=ThreadList&forumID=${ forumId } `
You can’t perform that action at this time.
0 commit comments