Skip to content
Snippets Groups Projects
Commit 6961a988 authored by jvanboxtel@wisc.edu's avatar jvanboxtel@wisc.edu
Browse files

ROENROLL-1805 credits fix

parent 2f5bb9a7
No related branches found
No related tags found
No related merge requests found
......@@ -163,8 +163,17 @@ export class TermContainerComponent implements OnInit, OnDestroy {
this.enrolledCourses = term.enrolledCourses;
this.enrolledCredits = this.sumEnrolledCredits(term.enrolledCourses);
this.visibleCredits =
term.termCode.era === Era.Past ? 'enrolled' : 'planned';
if (term.termCode.era === Era.Past) {
this.visibleCredits = 'enrolled';
} else if (term.termCode.era === Era.Active) {
if (this.enrolledCourses.length === 0) {
this.visibleCredits = 'planned';
} else {
this.visibleCredits = 'enrolled';
}
} else {
this.visibleCredits = 'planned';
}
});
this.note$ = this.term$.pipe(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment