Skip to content

Commit

Permalink
chore: revert notification toggle bug because the close button does n…
Browse files Browse the repository at this point in the history
…ot trigger session
  • Loading branch information
leangseu-edx committed Nov 17, 2023
1 parent 025eec7 commit 257c397
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
};
Expand Down

0 comments on commit 257c397

Please sign in to comment.