- {challenge.numRegistrants} + {challenge.numOfRegistrants}
- {challenge.numSubmissions} + {challenge.numOfSubmissions}
diff --git a/src/shared/components/challenge-detail/Header/TabSelector/index.jsx b/src/shared/components/challenge-detail/Header/TabSelector/index.jsx index 7049280fd2..1c7d20c74e 100644 --- a/src/shared/components/challenge-detail/Header/TabSelector/index.jsx +++ b/src/shared/components/challenge-detail/Header/TabSelector/index.jsx @@ -21,8 +21,8 @@ export default function ChallengeViewSelector(props) { const { challenge, checkpointCount, - numRegistrants, - numSubmissions, + numOfRegistrants, + numOfSubmissions, numWinners, onSelectorClicked, selectedView, @@ -86,7 +86,7 @@ export default function ChallengeViewSelector(props) { DETAILS { - numRegistrants ? ( + numOfRegistrants ? ( REGISTRANTS ( - {numRegistrants} + {numOfRegistrants} ) ) : null @@ -123,7 +123,7 @@ export default function ChallengeViewSelector(props) { ) } { - numSubmissions ? ( + numOfSubmissions ? ( SUBMISSIONS ( - {numSubmissions} + {numOfSubmissions} ) ) : null @@ -188,8 +188,8 @@ export default function ChallengeViewSelector(props) { ChallengeViewSelector.defaultProps = { challenge: {}, checkpointCount: 0, - numRegistrants: 0, - numSubmissions: 0, + numOfRegistrants: 0, + numOfSubmissions: 0, // hasRegistered: false, }; @@ -204,8 +204,8 @@ ChallengeViewSelector.propTypes = { }), }), checkpointCount: PT.number, - numRegistrants: PT.number, - numSubmissions: PT.number, + numOfRegistrants: PT.number, + numOfSubmissions: PT.number, numWinners: PT.number.isRequired, onSelectorClicked: PT.func.isRequired, selectedView: PT.string.isRequired, diff --git a/src/shared/components/challenge-detail/Header/index.jsx b/src/shared/components/challenge-detail/Header/index.jsx index feaedb67c9..5220e14273 100644 --- a/src/shared/components/challenge-detail/Header/index.jsx +++ b/src/shared/components/challenge-detail/Header/index.jsx @@ -68,8 +68,8 @@ export default function ChallengeHeader(props) { prizeSets, reliabilityBonus, userDetails, - numRegistrants, - numSubmissions, + numOfRegistrants, + numOfSubmissions, appealsEndDate, status, } = challenge; @@ -451,10 +451,10 @@ export default function ChallengeHeader(props) { onSelectorClicked={onSelectorClicked} trackLower={trackLower} selectedView={selectedView} - numRegistrants={numRegistrants} + numOfRegistrants={numOfRegistrants} numWinners={numWinners} hasCheckpoints={checkpoints && checkpoints.length > 0} - numSubmissions={numSubmissions} + numOfSubmissions={numOfSubmissions} hasRegistered={hasRegistered} checkpointCount={checkpointCount} mySubmissions={mySubmissions} @@ -492,8 +492,8 @@ ChallengeHeader.propTypes = { reliabilityBonus: PT.any, userDetails: PT.any, currentPhases: PT.any, - numRegistrants: PT.any, - numSubmissions: PT.any, + numOfRegistrants: PT.any, + numOfSubmissions: PT.any, status: PT.any, appealsEndDate: PT.any, allPhases: PT.any,