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 0c347e9 commit f316902Copy full SHA for f316902
src/shared/components/challenge-detail/Submissions/index.jsx
@@ -116,10 +116,12 @@ class SubmissionsComponent extends React.Component {
116
*/
117
getInitialScore(submission) {
118
let score = 'N/A';
119
+ const { challenge } = this.props;
120
+
121
if (!_.isEmpty(submission.review)
122
&& !_.isEmpty(submission.review[0])
123
&& submission.review[0].score
- && this.challenge.status === 'Completed') {
124
+ && challenge.status === 'Completed') {
125
score = Number(submission.review[0].score).toFixed(2);
126
} else if (!_.isEmpty(submission.score)) {
127
score = Number(submission.score).toFixed(2);
0 commit comments