Skip to content

Commit c0c393d

Browse files
committed
Mark as complete not working at bottom
#1579
1 parent 278ed99 commit c0c393d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/actions/challenges.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,10 @@ export function updateChallengeDetails (challengeId, challengeDetails, projectId
328328
if (hasMilestone) {
329329
delete challengeDetails.milestoneId
330330
}
331+
if (challengeDetails.status === 'Completed') {
332+
// Cannot update prizeSets for challenges with status: Completed!
333+
delete challengeDetails.prizeSets
334+
}
331335
return updateChallenge(challengeId, challengeDetails).then(async challenge => {
332336
if (hasMilestone) {
333337
if (milestoneId && milestoneId !== -1) {

0 commit comments

Comments
 (0)