process error

This commit is contained in:
isUnknown 2024-10-23 16:29:41 +02:00
parent 65a2bbaa8d
commit a00d9cbff1
3 changed files with 24 additions and 8 deletions

View file

@ -133,9 +133,13 @@ function closeAddField() {
}
function setStatus(comment) {
if (user?.notifications?.comments.hasOwnProperty(comment.id)) {
return "unread";
} else {
try {
if (user?.notifications?.comments.hasOwnProperty(comment.id)) {
return "unread";
} else {
return undefined;
}
} catch (error) {
return undefined;
}
}