Fix incorrect localStorage key of announcement dismiss

This commit is contained in:
Karina Kwiatek 2022-01-09 18:46:50 +01:00 committed by Andreas Nedbal
parent e7672e8033
commit f4c9ab821e
1 changed files with 1 additions and 1 deletions

View File

@ -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');
}
});