From 72696a1001c052662069856b6ecf75d9fcd2ee04 Mon Sep 17 00:00:00 2001 From: ievavold <ievavold@wisc.edu> Date: Mon, 20 May 2019 13:46:33 -0500 Subject: [PATCH] ROENROLL-1758 fix grades switch to correctly handle missing user pref --- src/app/degree-planner/degree-planner.component.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/app/degree-planner/degree-planner.component.ts b/src/app/degree-planner/degree-planner.component.ts index f1c9ffa..2bbe9f7 100644 --- a/src/app/degree-planner/degree-planner.component.ts +++ b/src/app/degree-planner/degree-planner.component.ts @@ -85,10 +85,7 @@ export class DegreePlannerComponent implements OnInit { filter(isntUndefined), ); - this.showGrades$ = this.store.pipe( - select(selectors.getUserPreference, 'degreePlannerGradesVisibility'), - map(showGrades => showGrades === true), - ); + this.showGrades$ = this.store.pipe(select(selectors.selectGradeVisibility)); this.hasDismissedIEWarning$ = this.store.pipe( select(selectors.getUserPreference, 'degreePlannerHasDismissedIEWarning'), -- GitLab