Skip to content

Commit

Permalink
feat: even better logs
Browse files Browse the repository at this point in the history
  • Loading branch information
zugdev committed Jan 10, 2025
1 parent e6b34bb commit 01b6c74
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/home/rendering/render-github-notifications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,12 @@ function everyNewNotification({

const commentData = commentsMap.get(notification.notification.id.toString());

if ((!commentData || commentData.commentBody === "") || (commentData.userType === "Bot" && !showBotNotifications)){
console.log("skipping ", notification.notification.subject.title, " because of empty comment or bot notification");
if (!commentData || (commentData.userType === "Bot" && !showBotNotifications)) {
console.log("skipping ", notification.notification.subject.title, " because of bot notification");
return;
}
if (commentData.commentBody === ""){
console.log("skipping ", notification.notification.subject.title, " because of empty comment");
return;
}

Expand Down

0 comments on commit 01b6c74

Please sign in to comment.