Fix incorrect localStorage key of announcement dismiss
This commit is contained in:
parent
e7672e8033
commit
f4c9ab821e
|
@ -7,7 +7,7 @@ export default (): void => {
|
|||
]);
|
||||
|
||||
document.querySelectorAll('.announcement').forEach(function (el: HTMLDivElement) {
|
||||
if (!window.localStorage.getItem(el.dataset.announcementId)) {
|
||||
if (!window.localStorage.getItem(`announcement${el.dataset.announcementId}`)) {
|
||||
el.classList.remove('d-none');
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue