Skip to content

Commit 0f15031

Browse files
committed
Allow for editing submission phase start separate from registration
1 parent 0d6c203 commit 0f15031

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/components/ChallengeEditor/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,11 @@ class ChallengeEditor extends Component {
839839
for (let index = 0; index < phases.length; ++index) {
840840
newChallenge.phases[index].isDurationActive =
841841
moment(newChallenge.phases[index]['scheduledEndDate']).isAfter()
842-
newChallenge.phases[index].isStartTimeActive = index <= 0
842+
if (newChallenge.phases[index].name === 'Submission') {
843+
newChallenge.phases[index].isStartTimeActive = true
844+
} else {
845+
newChallenge.phases[index].isStartTimeActive = index <= 0
846+
}
843847
newChallenge.phases[index].isOpen =
844848
newChallenge.phases[index].isDurationActive
845849
}

0 commit comments

Comments
 (0)