updated profile page

This commit is contained in:
Ren Amamiya
2023-03-25 17:50:15 +07:00
parent 17bcaa1a48
commit dbe9985739
5 changed files with 59 additions and 13 deletions

View File

@@ -59,8 +59,10 @@ export const NoteBase = memo(function NoteBase({ event }: { event: any }) {
}, [event.content, event.tags]);
const getParent = useMemo(() => {
if (event.parent_id !== event.id && !event.content.includes('#[0]')) {
return <NoteParent id={event.parent_id} />;
if (event.parent_id) {
if (event.parent_id !== event.id && !event.content.includes('#[0]')) {
return <NoteParent id={event.parent_id} />;
}
}
return;