Skip to content

Commit 67c1c1f

Browse files
authored
Update index.jsx
1 parent 91731b9 commit 67c1c1f

File tree

1 file changed

+2
-1
lines changed
  • src/shared/components/challenge-detail/Header

1 file changed

+2
-1
lines changed

src/shared/components/challenge-detail/Header/index.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ export default function ChallengeHeader(props) {
6666
events,
6767
legacy,
6868
prizeSets,
69+
currentPhases,
6970
reliabilityBonus,
7071
userDetails,
7172
numRegistrants,
@@ -125,7 +126,7 @@ export default function ChallengeHeader(props) {
125126
*/
126127
const hasSubmissions = userDetails && (userDetails.submissions || []).reduce((acc, submission) => acc || submission.status !== 'Deleted', false);
127128

128-
let nextPhase = (allPhases && allPhases[0]) || {};
129+
let nextPhase = (currentPhases && currentPhases[0]) || {};
129130
if (hasRegistered && nextPhase && nextPhase.name === 'Registration') {
130131
nextPhase = allPhases[1] || {};
131132
}

0 commit comments

Comments
 (0)