Skip to content

Commit 28f66ac

Browse files
Merge pull request #1267 from topcoder-platform/hotfix/parse-review-scores
Parse score to float before executing toFixed()
2 parents f138cca + 66accb3 commit 28f66ac

File tree

1 file changed

+2
-2
lines changed
  • src/components/ChallengeEditor/Submissions

1 file changed

+2
-2
lines changed

src/components/ChallengeEditor/Submissions/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,11 +428,11 @@ class SubmissionsComponent extends React.Component {
428428
<div className={styles['col-5']}>
429429
<a href={`${SUBMISSION_REVIEW_APP_URL}/${challenge.legacyId}/submissions/${s.id} `} target='_blank'>
430430
{!_.isEmpty(s.review) && s.review[0].score
431-
? s.review[0].score.toFixed(2)
431+
? parseFloat(s.review[0].score).toFixed(2)
432432
: 'N/A'}
433433
&zwnj; &zwnj;/ &zwnj;
434434
{s.reviewSummation && s.reviewSummation[0].aggregateScore
435-
? s.reviewSummation[0].aggregateScore.toFixed(2)
435+
? parseFloat(s.reviewSummation[0].aggregateScore).toFixed(2)
436436
: 'N/A'}
437437
</a>
438438
</div>

0 commit comments

Comments
 (0)