Address review feedback from @pixeldesu

Co-authored-by: Andreas Nedbal <git@pixelde.su>
This commit is contained in:
Karina Kwiatek 2022-01-09 18:16:36 +01:00 committed by Andreas Nedbal
parent 3e9fb2890f
commit d9e6982637
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
require('sweetalert/dist/sweetalert.css');
import start from 'retrospring/common';
import initAnnouncements from 'retrospring/features/announcement/index';
import initAnnouncements from 'retrospring/features/announcement';
import initAnswerbox from 'retrospring/features/answerbox/index';
import initInbox from 'retrospring/features/inbox/index';
import initUser from 'retrospring/features/user';

View File

@ -1,5 +1,5 @@
export default function (event: Event): void {
const announcement = (event.target as HTMLElement).closest(".announcement") as HTMLDivElement;
const aId = announcement.dataset.announcementId;
window.localStorage.setItem(`announcement${aId}`, 'true');
const announcementId = announcement.dataset.announcementId;
window.localStorage.setItem(`announcement${announcementId}`, 'true');
}