diff --git a/app/javascript/retrospring/features/announcement/index.ts b/app/javascript/retrospring/features/announcement/index.ts index 9b14eb4c..077bb4c9 100644 --- a/app/javascript/retrospring/features/announcement/index.ts +++ b/app/javascript/retrospring/features/announcement/index.ts @@ -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'); } });