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

Tom unreg logic #456

Merged
merged 2 commits into from
Oct 14, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,10 @@
// If the challenge is active and in the registration phase we allow either
// registration, or unregistration.
if (((moment(challenge.phases[0].scheduledStartTime)) < moment() && (moment(challenge.registrationEndDate)) > moment()) && challenge.currentStatus == 'Active') {
if (vm.isRegistered && !hasSubmitted) {
vm.challenge.allowToUnregister = true;
if (vm.isRegistered) {
if (!hasSubmitted) {
vm.challenge.allowToUnregister = true;
}
} else {
vm.challenge.registrationDisabled = false;
}
Expand Down