Skip to content

Commit

Permalink
Fixed the bug where todos will show in red if todo qa was created wit…
Browse files Browse the repository at this point in the history
…h approved as null
  • Loading branch information
userify-Aditya Bharadwaj committed Jul 27, 2018
1 parent fbb5026 commit 903082a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion orchestra/static/dist/main.js
Expand Up @@ -61812,7 +61812,7 @@ function todoChecklist() {
};

scope.isInDanger = function (todo) {
return !todo.completed && _momentTimezone2.default.isBeforeNowBy(todo.due_datetime, 1, 'days') || scope.todoQas[todo.description] && !scope.todoQas[todo.description].approved;
return !todo.completed && _momentTimezone2.default.isBeforeNowBy(todo.due_datetime, 1, 'days') || scope.todoQas[todo.description] && scope.todoQas[todo.description].approved === false;
};

scope.isSkipped = function (todo) {
Expand Down
Expand Up @@ -35,7 +35,7 @@ export default function todoChecklist () {
}

scope.isInDanger = (todo) => {
return (!todo.completed && moment.isBeforeNowBy(todo.due_datetime, 1, 'days')) || (scope.todoQas[todo.description] && !scope.todoQas[todo.description].approved)
return (!todo.completed && moment.isBeforeNowBy(todo.due_datetime, 1, 'days')) || (scope.todoQas[todo.description] && scope.todoQas[todo.description].approved === false)
}

scope.isSkipped = (todo) => {
Expand Down

0 comments on commit 903082a

Please sign in to comment.