Skip to content

Commit

Permalink
remove passed from course progress for staff view (#4315)
Browse files Browse the repository at this point in the history
  • Loading branch information
annagav authored May 7, 2019
1 parent 93aefac commit 26f9593
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion static/js/components/dashboard/courses/ProgressMessage.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export const staffCourseInfo = (courseRun: CourseRun, course: Course) => {
} else if (hasCanUpgradeCourseRun(course)) {
return "Audited, passed, did not pay"
} else if (hasMissedDeadlineCourseRun(course)) {
return "Audited, passed, missed payment deadline"
return "Audited, missed payment deadline"
}
if (courseRun.status === STATUS_NOT_PASSED) {
if (hasPaidForAnyCourseRun(course)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,14 +227,14 @@ describe("Course ProgressMessage", () => {
"Audited, passed, did not pay"
)
})
it("should return Audited, passed, missed payment deadline", () => {
it("should return Audited, missed payment deadline", () => {
makeRunPast(course.runs[0])
makeRunPast(course.runs[1])
course.runs[0].status = STATUS_NOT_PASSED
course.runs[1].status = STATUS_MISSED_DEADLINE
assert.equal(
staffCourseInfo(course.runs[0], course),
"Audited, passed, missed payment deadline"
"Audited, missed payment deadline"
)
})
})
Expand Down

0 comments on commit 26f9593

Please sign in to comment.