Skip to content

Commit b1e2faf

Browse files
author
Sachin Maheshwari
committed
typo
1 parent 4fc65df commit b1e2faf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/common/helper.js

Lines changed: 3 additions & 3 deletions
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 = _.get('checkPoint[0]', 'phaseId', null)
379+
phaseId = _.get(checkPoint, "[0].phaseId", null)
380380
} else if (submissionPh.length !== 0) {
381-
phaseId = _.get('submissionPh[0]', 'phaseId', null)
381+
phaseId = _.get(submissionPh, "[0].phaseId", null)
382382
} else if (finalFixPh.length !== 0) {
383-
phaseId = _.get('finalFixPh[0]', 'phaseId', null)
383+
phaseId = _.get(finalFixPh, "[0].phaseId", null)
384384
}
385385
}
386386
return phaseId

0 commit comments

Comments
 (0)