mirror of
https://github.com/lumina-rocks/lumina.git
synced 2026-04-08 22:46:49 +02:00
Update components/CommentsCompontent.tsx
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user