Skip to content

Commit 2359bd6

Browse files
authored
Merge pull request #4477 from rashmi73/issue_4474
issue 4474 fix
2 parents 8514b0a + a844ad3 commit 2359bd6

File tree

1 file changed

+1
-1
lines changed
  • src/shared/components/challenge-listing/ChallengeCard/Status

1 file changed

+1
-1
lines changed

src/shared/components/challenge-listing/ChallengeCard/Status/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ export default function ChallengeStatus(props) {
210210
const allPhases = challenge.phases || [];
211211

212212
let statusPhase = allPhases
213-
.filter(p => p.name !== 'Registration')
213+
.filter(p => p.name !== 'Registration' && p.isOpen)
214214
.sort((a, b) => moment(a.scheduledEndDate).diff(b.scheduledEndDate))[0];
215215

216216
if (!statusPhase && subTrack === 'FIRST_2_FINISH' && allPhases.length) {

0 commit comments

Comments
 (0)