diff --git a/src/components/comments/Comment.vue b/src/components/comments/Comment.vue index 0641515..ee82921 100644 --- a/src/components/comments/Comment.vue +++ b/src/components/comments/Comment.vue @@ -75,11 +75,10 @@ const status = computed(() => { const correspondingNotification = userStore.notifications.find( (notification) => notification.id === comment.id ); - if (!correspondingNotification.isRead) { + if (correspondingNotification && !correspondingNotification.isRead) { return "unread"; - } else { - return undefined; } + return undefined; }); function formatDate() {