Skip to content

Commit

Permalink
FIX: ensure top tasks work if there is no tutorial for the project
Browse files Browse the repository at this point in the history
  • Loading branch information
macite committed Jan 12, 2016
1 parent 0cb345b commit 4424a75
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ angular.module('doubtfire.projects.partials.projectTopTasks', [])
#
# Step 1: if today is the tutorial day... show tasks to discuss with tutor
#
tutorialDay = $scope.project.tutorial.meeting_day
if $scope.project? && $scope.project.tutorial?
tutorialDay = $scope.project.tutorial.meeting_day
else
tutorialDay = "Monday"

tasksToDiscuss = _.filter overdueTasks, (task) -> _.contains taskService.statusToDiscuss, task.status

Expand Down

0 comments on commit 4424a75

Please sign in to comment.