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 20, 2023
1 parent f493a52 commit bfbd4d4
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 bfbd4d4

Please sign in to comment.