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.
1 parent f890395 commit a20e2c8Copy full SHA for a20e2c8
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