fix corresponding notification

This commit is contained in:
isUnknown 2024-11-18 09:47:42 +01:00
parent 39fc379541
commit f467012241

View file

@ -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() {