Skip to content

Commit d06a21f

Browse files
committed
Only show scores for non Marathon Match challenges that have completed
1 parent ff3092a commit d06a21f

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -905,7 +905,7 @@ class SubmissionsComponent extends React.Component {
905905
<div styleName="mobile-header">INITIAL SCORE</div>
906906
<p>
907907
{
908-
(!_.isEmpty(s.review) && !_.isEmpty(s.review[0]) && s.review[0].score)
908+
(!_.isEmpty(s.review) && !_.isEmpty(s.review[0]) && s.review[0].score && challenge.status === 'Completed')
909909
? Number(s.review[0].score).toFixed(2)
910910
: 'N/A'
911911
}
@@ -915,7 +915,7 @@ class SubmissionsComponent extends React.Component {
915915
<div styleName="mobile-header">FINAL SCORE</div>
916916
<p>
917917
{
918-
(s.reviewSummation && s.reviewSummation[0].aggregateScore)
918+
(s.reviewSummation && s.reviewSummation[0].aggregateScore && challenge.status === 'Completed')
919919
? s.reviewSummation[0].aggregateScore.toFixed(2)
920920
: 'N/A'
921921
}

0 commit comments

Comments
 (0)