Skip to content

Commit

Permalink
Merge pull request #66 from topcoder-platform/develop
Browse files Browse the repository at this point in the history
Fix of challenge listing
  • Loading branch information
ajefts authored Jun 12, 2017
2 parents 28bf6d9 + 833161e commit 340eea1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/shared/reducers/challenge-listing.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 340eea1

Please sign in to comment.