fix corresponding notification
This commit is contained in:
parent
39fc379541
commit
f467012241
1 changed files with 2 additions and 3 deletions
|
|
@ -75,11 +75,10 @@ const status = computed(() => {
|
||||||
const correspondingNotification = userStore.notifications.find(
|
const correspondingNotification = userStore.notifications.find(
|
||||||
(notification) => notification.id === comment.id
|
(notification) => notification.id === comment.id
|
||||||
);
|
);
|
||||||
if (!correspondingNotification.isRead) {
|
if (correspondingNotification && !correspondingNotification.isRead) {
|
||||||
return "unread";
|
return "unread";
|
||||||
} else {
|
|
||||||
return undefined;
|
|
||||||
}
|
}
|
||||||
|
return undefined;
|
||||||
});
|
});
|
||||||
|
|
||||||
function formatDate() {
|
function formatDate() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue