diff --git a/src/shared/components/SubmissionManagement/Submission/index.jsx b/src/shared/components/SubmissionManagement/Submission/index.jsx index fb3b0231f..c4ed0f70a 100644 --- a/src/shared/components/SubmissionManagement/Submission/index.jsx +++ b/src/shared/components/SubmissionManagement/Submission/index.jsx @@ -43,11 +43,11 @@ export default function Submission(props) { // Determine if a challenge is for Topcrowd so we can edit the UI accordingly let isTopCrowdChallenge = false; - const isTopCrowdChallengeData = _.find(challenge.metadata, { name: 'is_platform' }); - if (isTopCrowdChallengeData) { - isTopCrowdChallenge = isTopCrowdChallengeData.value; - } else { - isTopCrowdChallenge = false; + if (challenge) { + const isTopCrowdChallengeData = _.find(challenge.metadata, { name: 'is_platform' }); + if (isTopCrowdChallengeData) { + isTopCrowdChallenge = isTopCrowdChallengeData.value; + } } return (