Skip to content

Commit

Permalink
πŸ› fix: μ•ŒλžŒμ΄ μ—†μ„κ²½μš° μΆ”κ°€
Browse files Browse the repository at this point in the history
  • Loading branch information
NamgyungKim committed Jun 22, 2022
1 parent 39dc223 commit ea123f0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/common/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ const Header: React.FC = () => {
});

const notificationData = filterData.map(({ comment, seen, post }) => {
console.log(filterData);
if (!comment) return;
const { channel, title } = comment.post as IPost;
return {
Expand All @@ -42,7 +43,8 @@ const Header: React.FC = () => {
postId: post
};
});
setNoticeSeen(!notificationData[0].seen);

if (notificationData.length > 0) setNoticeSeen(!notificationData[0].seen);
setNoticeContents(notificationData);
};

Expand Down

0 comments on commit ea123f0

Please sign in to comment.