File tree 1 file changed +3
-1
lines changed
src/shared/components/challenge-detail/Submissions
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -120,7 +120,8 @@ class SubmissionsComponent extends React.Component {
120
120
if ( ! _ . isEmpty ( submission . review )
121
121
&& ! _ . isEmpty ( submission . review [ 0 ] )
122
122
&& 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' } ) ) ) ) {
124
125
score = Number ( submission . review [ 0 ] . score ) . toFixed ( 2 ) ;
125
126
}
126
127
return score ;
@@ -1005,6 +1006,7 @@ SubmissionsComponent.propTypes = {
1005
1006
registrants : PT . any ,
1006
1007
status : PT . string . isRequired ,
1007
1008
phases : PT . any ,
1009
+ metadata : PT . arrayOf ( PT . object ) ,
1008
1010
} ) . isRequired ,
1009
1011
toggleSubmissionHistory : PT . func . isRequired ,
1010
1012
submissionHistoryOpen : PT . shape ( { } ) . isRequired ,
You can’t perform that action at this time.
0 commit comments