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

Commit 921cac5

Browse files
authored
Merge pull request #483 from shubhendusaurabh/submit-button
fixed topcoder-archive/appirio_tech-topcoder-app/issues/990
2 parents 115ee74 + abda2b5 commit 921cac5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/js/app/challenge-details/js/controllers/challenge-details-controller.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,8 @@
396396
}
397397

398398
// If is not submited, then enable submission
399-
if (((moment(challenge.submissionEndDate)) > moment()) && regList.indexOf(handle) > -1) {
399+
var challengeSubmissionPhase = _.find(vm.challenge.phases, function(phase) { return phase.type === 'Submission'; })
400+
if ((challengeSubmissionPhase && challengeSubmissionPhase.status === 'Open') && regList.indexOf(handle) > -1) {
400401
vm.challenge.submissionDisabled = false;
401402
}
402403

0 commit comments

Comments
 (0)