Skip to content

Commit 340eea1

Browse files
authored
Merge pull request #66 from topcoder-platform/develop
Fix of challenge listing
2 parents 28bf6d9 + 833161e commit 340eea1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/shared/reducers/challenge-listing.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ export function normalizeMarathonMatch(challenge) {
8484
currentPhases: allphases.filter(phase => phase.phaseStatus === 'Open'),
8585
communities: new Set([COMMUNITY.DATA_SCIENCE]),
8686
currentPhaseName: endTimestamp > Date.now() ? 'Registration' : '',
87-
numRegistrants: challenge.numRegistrants[0],
88-
numSubmissions: challenge.userIds.length,
87+
numRegistrants: challenge.numRegistrants ? challenge.numRegistrants[0] : 0,
88+
numSubmissions: challenge.userIds ? challenge.userIds.length : 0,
8989
platforms: '',
9090
prizes: [0],
9191
registrationOpen: endTimestamp > Date.now() ? 'Yes' : 'No',

0 commit comments

Comments
 (0)