diff --git a/src/app/degree-planner/alert-container/alert-container.component.ts b/src/app/degree-planner/alert-container/alert-container.component.ts index 3cacdb402963c5747d9de4f9c31d3ef27148abb3..8eabe02b84bffc8d8f6cdfff5426cf627d38975b 100644 --- a/src/app/degree-planner/alert-container/alert-container.component.ts +++ b/src/app/degree-planner/alert-container/alert-container.component.ts @@ -20,8 +20,6 @@ export class AlertContainerComponent { public dismissAlert(key: string, callback?: () => void) { this.store.dispatch(new DismissAlert({ key })); - console.log(callback); - if (typeof callback === 'function') { callback(); } diff --git a/src/app/degree-planner/term-container/term-container.component.ts b/src/app/degree-planner/term-container/term-container.component.ts index f008a300e1515cb3eae794e9771a24a230e36ae9..b6483f6d853ab928e47c5d9d68febdfb89494de0 100644 --- a/src/app/degree-planner/term-container/term-container.component.ts +++ b/src/app/degree-planner/term-container/term-container.component.ts @@ -101,9 +101,13 @@ export class TermContainerComponent implements OnInit, OnDestroy { this.tooManyCredits$ = this.term$.pipe( map(term => { - const credits = sumCredits(term.plannedCourses); - const maxAllowedCredits = maximumAllowedCreditsForTerm(term.termCode); - return credits.min >= maxAllowedCredits; + if (this.constants.isUndergrad()) { + const credits = sumCredits(term.plannedCourses); + const maxAllowedCredits = maximumAllowedCreditsForTerm(term.termCode); + return credits.min >= maxAllowedCredits; + } else { + return false; + } }), );