Skip to content

Commit 4a8722c

Browse files
author
Aranyajit
committed
direct project id should not be required
1 parent c6c2872 commit 4a8722c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/services/ChallengeService.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1530,12 +1530,12 @@ async function updateChallenge(currentUser, challengeId, data) {
15301530
_.set(data, "billing.billingAccountId", billingAccountId);
15311531
_.set(data, "billing.markup", markup || 0);
15321532
}
1533-
}
15341533

1535-
// Make sure the user cannot change the direct project ID
1536-
if (data.legacy) {
1537-
data.legacy = _.assign({}, challenge.legacy, data.legacy);
1538-
_.set(data, "legacy.directProjectId", challenge.legacy.directProjectId);
1534+
// Make sure the user cannot change the direct project ID
1535+
if (data.legacy) {
1536+
data.legacy = _.assign({}, challenge.legacy, data.legacy);
1537+
_.set(data, "legacy.directProjectId", challenge.legacy.directProjectId);
1538+
}
15391539
}
15401540

15411541
// Remove fields from data that are not allowed to be updated and that match the existing challenge

0 commit comments

Comments
 (0)