Skip to content

Commit

Permalink
NTI-7299 Check passingScore when determining case for non-pass/fail
Browse files Browse the repository at this point in the history
  • Loading branch information
coryjones1 committed Jan 28, 2019
1 parent 0fc115c commit 562824e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/navigation-bar/status/submission-states/Title.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ const STATES = [
case: (assignment, historyItem) => {
const {CompletedItem} = assignment;

return CompletedItem && CompletedItem.Success;
return assignment.passingScore && CompletedItem && !CompletedItem.Success;
}
},
{
Expand All @@ -153,7 +153,7 @@ const STATES = [
case: (assignment, historyItem) => {
const {CompletedItem} = assignment;

return CompletedItem && !CompletedItem.Success;
return assignment.passingScore && CompletedItem && !CompletedItem.Success;
}
},
{
Expand Down

0 comments on commit 562824e

Please sign in to comment.