We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91731b9 commit 67c1c1fCopy full SHA for 67c1c1f
src/shared/components/challenge-detail/Header/index.jsx
@@ -66,6 +66,7 @@ export default function ChallengeHeader(props) {
66
events,
67
legacy,
68
prizeSets,
69
+ currentPhases,
70
reliabilityBonus,
71
userDetails,
72
numRegistrants,
@@ -125,7 +126,7 @@ export default function ChallengeHeader(props) {
125
126
*/
127
const hasSubmissions = userDetails && (userDetails.submissions || []).reduce((acc, submission) => acc || submission.status !== 'Deleted', false);
128
- let nextPhase = (allPhases && allPhases[0]) || {};
129
+ let nextPhase = (currentPhases && currentPhases[0]) || {};
130
if (hasRegistered && nextPhase && nextPhase.name === 'Registration') {
131
nextPhase = allPhases[1] || {};
132
}
0 commit comments