We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0a80847 + a20e2c8 commit 4ebbd62Copy full SHA for 4ebbd62
src/components/challenge-detail/Submissions/index.jsx
@@ -206,8 +206,8 @@ class SubmissionsComponent extends React.Component {
206
valueA = getFinalScore(a);
207
valueB = getFinalScore(b);
208
} else {
209
- valueA = !_.isEmpty(a.review) && a.review[0].score;
210
- valueB = !_.isEmpty(b.review) && b.review[0].score;
+ valueA = !_.isEmpty(a.review) ? a.review[0].score : 0;
+ valueB = !_.isEmpty(b.review) ? b.review[0].score : 0;
211
}
212
break;
213
0 commit comments