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 b1e2faf commit b34e69cCopy full SHA for b34e69c
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 = _.get(checkPoint, "[0].phaseId", null)
+ phaseId = checkPoint[0].phaseId
380
} else if (submissionPh.length !== 0) {
381
- phaseId = _.get(submissionPh, "[0].phaseId", null)
+ phaseId = submissionPh[0].phaseId
382
} else if (finalFixPh.length !== 0) {
383
- phaseId = _.get(finalFixPh, "[0].phaseId", null)
+ phaseId = finalFixPh[0].phaseId
384
}
385
386
return phaseId
0 commit comments