Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit b0a9c8c

Browse files
author
Nick Litwin
committed
Check for checkpoint submissions as well
1 parent 5512b35 commit b0a9c8c

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

app/submissions/submissions.routes.js

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,17 @@
4444
var phaseId;
4545

4646
var isPhaseSubmission = _.some(challenge.currentPhases, function(phase) {
47-
if (phase.phaseStatus === 'Open' && phase.phaseType === 'Submission') {
48-
phaseType = 'Submission';
49-
phaseId = phase.id;
50-
return true;
47+
if (phase.phaseStatus === 'Open') {
48+
if (phase.phaseType === 'Submission') {
49+
phaseType = 'Submission';
50+
phaseId = phase.id;
51+
return true;
52+
53+
} else if (phase.phaseType === 'Checkpoint Submission') {
54+
phaseType = 'Checkpoint_Submission';
55+
phaseId = phase.id;
56+
return true;
57+
}
5158
}
5259

5360
return false;

0 commit comments

Comments
 (0)