We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11f64d0 commit 4fc65dfCopy full SHA for 4fc65df
src/common/helper.js
@@ -376,11 +376,11 @@ function * getSubmissionPhaseId (challengeId) {
376
const submissionPh = _.filter(phases, { name: 'Submission', isOpen: true })
377
const finalFixPh = _.filter(phases, { name: 'Final Fix', isOpen: true })
378
if (checkPoint.length !== 0) {
379
- phaseId = checkPoint[0].id
+ phaseId = _.get('checkPoint[0]', 'phaseId', null)
380
} else if (submissionPh.length !== 0) {
381
- phaseId = submissionPh[0].id
+ phaseId = _.get('submissionPh[0]', 'phaseId', null)
382
} else if (finalFixPh.length !== 0) {
383
- phaseId = finalFixPh[0].id
+ phaseId = _.get('finalFixPh[0]', 'phaseId', null)
384
}
385
386
return phaseId
0 commit comments