Skip to content

Commit 4ebbd62

Browse files
Merge pull request #158 from shivam-51/issue-95
Fixes #95
2 parents 0a80847 + a20e2c8 commit 4ebbd62

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,8 @@ class SubmissionsComponent extends React.Component {
206206
valueA = getFinalScore(a);
207207
valueB = getFinalScore(b);
208208
} else {
209-
valueA = !_.isEmpty(a.review) && a.review[0].score;
210-
valueB = !_.isEmpty(b.review) && b.review[0].score;
209+
valueA = !_.isEmpty(a.review) ? a.review[0].score : 0;
210+
valueB = !_.isEmpty(b.review) ? b.review[0].score : 0;
211211
}
212212
break;
213213
}

0 commit comments

Comments
 (0)