From 257c397f9d499c5edf7dad4c808b105d50d6a94e Mon Sep 17 00:00:00 2001 From: Leangseu Kim Date: Fri, 17 Nov 2023 13:16:05 -0500 Subject: [PATCH] chore: revert notification toggle bug because the close button does not trigger session --- .../sidebar/sidebars/notifications/NotificationTrigger.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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(); };