Skip to content

Commit 70860cc

Browse files
author
sachin-maheshwari
authored
Merge pull request #227 from topcoder-platform/develop
Hotfix 03 March2021 : shapeup pure v5 task
2 parents 82db802 + a225915 commit 70860cc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/common/helper.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -376,11 +376,11 @@ function * getSubmissionPhaseId (challengeId) {
376376
const submissionPh = _.filter(phases, { name: 'Submission', isOpen: true })
377377
const finalFixPh = _.filter(phases, { name: 'Final Fix', isOpen: true })
378378
if (checkPoint.length !== 0) {
379-
phaseId = checkPoint[0].id
379+
phaseId = checkPoint[0].phaseId
380380
} else if (submissionPh.length !== 0) {
381-
phaseId = submissionPh[0].id
381+
phaseId = submissionPh[0].phaseId
382382
} else if (finalFixPh.length !== 0) {
383-
phaseId = finalFixPh[0].id
383+
phaseId = finalFixPh[0].phaseId
384384
}
385385
}
386386
return phaseId
@@ -459,7 +459,7 @@ function * checkCreateAccess (authUser, subEntity) {
459459
throw new errors.HttpStatusError(403, 'You are not allowed to submit when submission phase is not open')
460460
}
461461

462-
const currPhase = _.filter(phases, { id: submissionPhaseId })
462+
const currPhase = _.filter(phases, { phaseId: submissionPhaseId })
463463

464464
if (currPhase[0].name === 'Final Fix') {
465465
if (!authUser.handle.equals(winner[0].handle)) {

0 commit comments

Comments
 (0)