Skip to content

Commit 172dfe9

Browse files
authored
Merge pull request #6995 from topcoder-platform/develop
PROD - Add additional check for ICs that run that don't have the data dashboard
2 parents 592e7ca + ece2112 commit 172dfe9

File tree

1 file changed

+3
-1
lines changed
  • src/shared/components/challenge-detail/Submissions

1 file changed

+3
-1
lines changed

src/shared/components/challenge-detail/Submissions/index.jsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,8 @@ class SubmissionsComponent extends React.Component {
120120
if (!_.isEmpty(submission.review)
121121
&& !_.isEmpty(submission.review[0])
122122
&& submission.review[0].score
123-
&& (challenge.status === 'Completed' || _.includes(challenge.tags, 'Innovation Challenge'))) {
123+
&& (challenge.status === 'Completed'
124+
|| (_.includes(challenge.tags, 'Innovation Challenge') && _.find(challenge.metadata, { name: 'show_data_dashboard' })))) {
124125
score = Number(submission.review[0].score).toFixed(2);
125126
}
126127
return score;
@@ -1005,6 +1006,7 @@ SubmissionsComponent.propTypes = {
10051006
registrants: PT.any,
10061007
status: PT.string.isRequired,
10071008
phases: PT.any,
1009+
metadata: PT.arrayOf(PT.object),
10081010
}).isRequired,
10091011
toggleSubmissionHistory: PT.func.isRequired,
10101012
submissionHistoryOpen: PT.shape({}).isRequired,

0 commit comments

Comments
 (0)