diff --git a/src/courseware/course/sidebar/sidebars/notifications/NotificationTrigger.jsx b/src/courseware/course/sidebar/sidebars/notifications/NotificationTrigger.jsx index 6819e06acc..f01e717291 100644 --- a/src/courseware/course/sidebar/sidebars/notifications/NotificationTrigger.jsx +++ b/src/courseware/course/sidebar/sidebars/notifications/NotificationTrigger.jsx @@ -48,10 +48,10 @@ const NotificationTrigger = ({ }); const handleClick = () => { - if (getSessionStorage(`notificationTrayStatus.${courseId}`) === 'open') { - setSessionStorage(`notificationTrayStatus.${courseId}`, 'closed'); - } else { + if (getSessionStorage(`notificationTrayStatus.${courseId}`) === 'closed') { setSessionStorage(`notificationTrayStatus.${courseId}`, 'open'); + } else { + setSessionStorage(`notificationTrayStatus.${courseId}`, 'closed'); } onClick(); };