File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -376,11 +376,11 @@ function * getSubmissionPhaseId (challengeId) {
376
376
const submissionPh = _ . filter ( phases , { name : 'Submission' , isOpen : true } )
377
377
const finalFixPh = _ . filter ( phases , { name : 'Final Fix' , isOpen : true } )
378
378
if ( checkPoint . length !== 0 ) {
379
- phaseId = checkPoint [ 0 ] . id
379
+ phaseId = checkPoint [ 0 ] . phaseId
380
380
} else if ( submissionPh . length !== 0 ) {
381
- phaseId = submissionPh [ 0 ] . id
381
+ phaseId = submissionPh [ 0 ] . phaseId
382
382
} else if ( finalFixPh . length !== 0 ) {
383
- phaseId = finalFixPh [ 0 ] . id
383
+ phaseId = finalFixPh [ 0 ] . phaseId
384
384
}
385
385
}
386
386
return phaseId
@@ -459,7 +459,7 @@ function * checkCreateAccess (authUser, subEntity) {
459
459
throw new errors . HttpStatusError ( 403 , 'You are not allowed to submit when submission phase is not open' )
460
460
}
461
461
462
- const currPhase = _ . filter ( phases , { id : submissionPhaseId } )
462
+ const currPhase = _ . filter ( phases , { phaseId : submissionPhaseId } )
463
463
464
464
if ( currPhase [ 0 ] . name === 'Final Fix' ) {
465
465
if ( ! authUser . handle . equals ( winner [ 0 ] . handle ) ) {
You can’t perform that action at this time.
0 commit comments