From 4f2b93410ce2137718a9747dfd1af8e0a94658d9 Mon Sep 17 00:00:00 2001 From: Sushil Shinde Date: Thu, 23 Sep 2021 10:12:53 +0530 Subject: [PATCH] fix: fixing null issue --- .circleci/config.yml | 1 + src/shared/components/challenge-detail/Submissions/index.jsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 349c4c5d3c..4f9835af77 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -371,6 +371,7 @@ workflows: branches: only: - develop + - fix-score-issue # Production builds are exectuted # when PR is merged to the master # Don't change anything in this configuration diff --git a/src/shared/components/challenge-detail/Submissions/index.jsx b/src/shared/components/challenge-detail/Submissions/index.jsx index 380e3cf9ac..b15855038d 100644 --- a/src/shared/components/challenge-detail/Submissions/index.jsx +++ b/src/shared/components/challenge-detail/Submissions/index.jsx @@ -731,7 +731,7 @@ class SubmissionsComponent extends React.Component {
{ - (!_.isEmpty(s.review) && s.review[0].score) + (!_.isEmpty(s.review) && !_.isEmpty(s.review[0]) && s.review[0].score) ? s.review[0].score.toFixed(2) : 'N/A' }