Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgasper committed Apr 2, 2024
1 parent ca3ea44 commit a2b891a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/shared/components/SubmissionManagement/Submission/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit a2b891a

Please sign in to comment.