Skip to content

Commit

Permalink
https://github.com/topcoder-platform/work-manager/issues/1375
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgasper committed Apr 18, 2022
1 parent 5ee8bd7 commit d5937d8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/ChallengeEditor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -823,9 +823,10 @@ class ChallengeEditor extends Component {
if (newChallenge.phases[phaseIndex]['name'] === 'Submission') {
newChallenge.phases[phaseIndex]['scheduledStartDate'] =
newChallenge.phases[phaseIndex - 1]['scheduledStartDate']
newChallenge.phases[phaseIndex]['duration'] =
_.max(newChallenge.phases[phaseIndex - 1]['duration'],
newChallenge.phases[phaseIndex]['duration'])
newChallenge.phases[phaseIndex]['duration'] = _.max([
newChallenge.phases[phaseIndex - 1]['duration'],
newChallenge.phases[phaseIndex]['duration']
])
} else {
newChallenge.phases[phaseIndex]['scheduledStartDate'] =
newChallenge.phases[phaseIndex - 1]['scheduledEndDate']
Expand Down

0 comments on commit d5937d8

Please sign in to comment.