Update components/CommentsCompontent.tsx

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
mroxso
2025-03-31 23:00:13 +02:00
committed by highperfocused
parent e95a62899e
commit 98922f1892

View File

@@ -19,7 +19,7 @@ const CommentsCompontent: React.FC<CommentsCompontentProps> = ({ pubkey, event }
},
});
// filter out all events with more then 1 "e" tag. other tags are ok
// filter out all events with more than 1 "e" tag. other tags are ok
// this shows only the top level comments
let filteredEvents = events.filter((event) => {
return event.tags.filter((tag) => tag[0] === 'e').length === 1;