fix nsecbunker

This commit is contained in:
2023-12-01 08:23:46 +07:00
parent 8355ad6863
commit 9ddf3471ce
5 changed files with 39 additions and 28 deletions

View File

@@ -124,10 +124,10 @@ export function NotifyNote({ event }: { event: NDKEvent }) {
<div className="flex flex-col gap-2">
<div className="w-full px-3">
<div className="flex h-min w-full flex-col gap-3 rounded-lg bg-neutral-100 p-3 dark:bg-neutral-900">
{thread.replyEventId ? (
<ChildNote id={thread.replyEventId} />
) : thread.rootEventId ? (
<ChildNote id={thread.rootEventId} isRoot />
{thread?.replyEventId ? (
<ChildNote id={thread?.replyEventId} />
) : thread?.rootEventId ? (
<ChildNote id={thread?.rootEventId} isRoot />
) : null}
<button
type="button"