File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
components/SubmissionManagement/Submission Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import _ from 'lodash';
15
15
import moment from 'moment' ;
16
16
import React from 'react' ;
17
17
import { config } from 'topcoder-react-utils' ;
18
- import { COMPETITION_TRACKS } from 'utils/tc' ;
18
+ import { COMPETITION_TRACKS , CHALLENGE_STATUS } from 'utils/tc' ;
19
19
20
20
import PT from 'prop-types' ;
21
21
@@ -85,7 +85,8 @@ export default function Submission(props) {
85
85
onClick={() => onDownload(submissionObject.id)}
86
86
><DownloadIcon /></button>
87
87
*/ }
88
- { status !== 'COMPLETED'
88
+ { status !== CHALLENGE_STATUS . COMPLETED
89
+ && track !== COMPETITION_TRACKS . DESIGN
89
90
&& (
90
91
< button
91
92
styleName = "delete-icon"
Original file line number Diff line number Diff line change @@ -10,7 +10,11 @@ import { config, isomorphy } from 'topcoder-react-utils';
10
10
11
11
import { tc } from 'topcoder-react-lib' ;
12
12
13
- export const { COMPETITION_TRACKS , REVIEW_OPPORTUNITY_TYPES } = tc ;
13
+ export const {
14
+ COMPETITION_TRACKS ,
15
+ CHALLENGE_STATUS ,
16
+ REVIEW_OPPORTUNITY_TYPES ,
17
+ } = tc ;
14
18
15
19
/**
16
20
* Possible phase types (at the moment, this map does not cover all
You can’t perform that action at this time.
0 commit comments