Skip to content

Commit

Permalink
Merge pull request #139 from Board-Buddy/Feat/#34
Browse files Browse the repository at this point in the history
Fix: onmessage 리스너에서 console.log 호출
  • Loading branch information
ChaeYubin authored Aug 5, 2024
2 parents c9416e1 + 0daa63f commit 650f72f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/components/NotificationProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,8 @@ const NotificationProvider = () => {

eventSource.onmessage = (event) => {
const newNotification = JSON.parse(event.data);
const newNotificationContent = newNotification;

notify(newNotificationContent);
console.log(newNotification);
notify(newNotification);
};

// 참가 신청 이벤트 리스너
Expand Down Expand Up @@ -73,7 +72,6 @@ const NotificationProvider = () => {
// 모집글 댓글 작성 이벤트 리스너
eventSource.addEventListener('writeComment', (event) => {
const newNotification = JSON.parse(event.data);
console.log(newNotification);
notify(newNotification);
});

Expand Down

0 comments on commit 650f72f

Please sign in to comment.