Skip to content

Commit 547898b

Browse files
SubmissionManagement - Get challenge status from utils/tc
1 parent c865c7c commit 547898b

File tree

2 files changed

+7
-3
lines changed
  • src/shared

2 files changed

+7
-3
lines changed

src/shared/components/SubmissionManagement/Submission/index.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import _ from 'lodash';
1515
import moment from 'moment';
1616
import React from 'react';
1717
import { config } from 'topcoder-react-utils';
18-
import { COMPETITION_TRACKS } from 'utils/tc';
18+
import { COMPETITION_TRACKS, CHALLENGE_STATUS } from 'utils/tc';
1919

2020
import PT from 'prop-types';
2121

@@ -85,7 +85,7 @@ export default function Submission(props) {
8585
onClick={() => onDownload(submissionObject.id)}
8686
><DownloadIcon /></button>
8787
*/ }
88-
{status !== 'COMPLETED'
88+
{status !== CHALLENGE_STATUS.COMPLETED
8989
&& (
9090
<button
9191
styleName="delete-icon"

src/shared/utils/tc.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ import { config, isomorphy } from 'topcoder-react-utils';
1010

1111
import { tc } from 'topcoder-react-lib';
1212

13-
export const { COMPETITION_TRACKS, REVIEW_OPPORTUNITY_TYPES } = tc;
13+
export const {
14+
COMPETITION_TRACKS,
15+
CHALLENGE_STATUS,
16+
REVIEW_OPPORTUNITY_TYPES,
17+
} = tc;
1418

1519
/**
1620
* Possible phase types (at the moment, this map does not cover all

0 commit comments

Comments
 (0)