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.
2 parents 28bf6d9 + 833161e commit 340eea1Copy full SHA for 340eea1
src/shared/reducers/challenge-listing.js
@@ -84,8 +84,8 @@ export function normalizeMarathonMatch(challenge) {
84
currentPhases: allphases.filter(phase => phase.phaseStatus === 'Open'),
85
communities: new Set([COMMUNITY.DATA_SCIENCE]),
86
currentPhaseName: endTimestamp > Date.now() ? 'Registration' : '',
87
- numRegistrants: challenge.numRegistrants[0],
88
- numSubmissions: challenge.userIds.length,
+ numRegistrants: challenge.numRegistrants ? challenge.numRegistrants[0] : 0,
+ numSubmissions: challenge.userIds ? challenge.userIds.length : 0,
89
platforms: '',
90
prizes: [0],
91
registrationOpen: endTimestamp > Date.now() ? 'Yes' : 'No',
0 commit comments