diff --git a/lms/static/js/learner_dashboard/EnterpriseLearnerPortalBanner.jsx b/lms/static/js/learner_dashboard/EnterpriseLearnerPortalBanner.jsx index a206b92a11..9a4035cf70 100644 --- a/lms/static/js/learner_dashboard/EnterpriseLearnerPortalBanner.jsx +++ b/lms/static/js/learner_dashboard/EnterpriseLearnerPortalBanner.jsx @@ -23,7 +23,7 @@ function setViewedBanner() { } function hasViewedBanner() { - window.localStorage.getItem(LOCAL_STORAGE_KEY); + return window.localStorage.getItem(LOCAL_STORAGE_KEY) != null; } class EnterpriseLearnerPortalBanner extends Component {