Skip to content

Commit 03c8277

Browse files
committedApr 18, 2023
Fix issue with date editing
·
v0.20.9v0.20.6
1 parent 3f0e098 commit 03c8277

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/components/ChallengeEditor/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -893,8 +893,8 @@ class ChallengeEditor extends Component {
893893
newChallenge.phases[phaseIndex - 1]['scheduledEndDate']
894894
}
895895
newChallenge.phases[phaseIndex]['scheduledEndDate'] = getPhaseEndDate(
896-
newChallenge.phases[index]['scheduledStartDate'],
897-
newChallenge.phases[index]['duration']
896+
newChallenge.phases[phaseIndex]['scheduledStartDate'],
897+
newChallenge.phases[phaseIndex]['duration']
898898
)
899899
}
900900
if (!_.isEqual(newChallenge.phases[index], phases[index])) {

0 commit comments

Comments
 (0)
Please sign in to comment.