diff --git a/src/shared/reducers/challenge-listing.js b/src/shared/reducers/challenge-listing.js index 03404a19ea..7aa223efa2 100644 --- a/src/shared/reducers/challenge-listing.js +++ b/src/shared/reducers/challenge-listing.js @@ -84,8 +84,8 @@ export function normalizeMarathonMatch(challenge) { currentPhases: allphases.filter(phase => phase.phaseStatus === 'Open'), communities: new Set([COMMUNITY.DATA_SCIENCE]), currentPhaseName: endTimestamp > Date.now() ? 'Registration' : '', - numRegistrants: challenge.numRegistrants[0], - numSubmissions: challenge.userIds.length, + numRegistrants: challenge.numRegistrants ? challenge.numRegistrants[0] : 0, + numSubmissions: challenge.userIds ? challenge.userIds.length : 0, platforms: '', prizes: [0], registrationOpen: endTimestamp > Date.now() ? 'Yes' : 'No',