Skip to content

Commit 0e3b2cf

Browse files
authored
Merge pull request #5710 from topcoder-platform/fix-score-issue
fix: fixing null issue
2 parents 7cb0256 + 4f2b934 commit 0e3b2cf

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.circleci/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,7 @@ workflows:
371371
branches:
372372
only:
373373
- develop
374+
- fix-score-issue
374375
# Production builds are exectuted
375376
# when PR is merged to the master
376377
# Don't change anything in this configuration

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ class SubmissionsComponent extends React.Component {
731731
</div>
732732
<div styleName="col-5">
733733
{
734-
(!_.isEmpty(s.review) && s.review[0].score)
734+
(!_.isEmpty(s.review) && !_.isEmpty(s.review[0]) && s.review[0].score)
735735
? s.review[0].score.toFixed(2)
736736
: 'N/A'
737737
}

0 commit comments

Comments
 (0)