File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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 ) ) {
You can’t perform that action at this time.
0 commit comments