diff --git a/src/lib/components/Comment.svelte b/src/lib/components/Comment.svelte index 5457c8b..0bd23ad 100644 --- a/src/lib/components/Comment.svelte +++ b/src/lib/components/Comment.svelte @@ -1,5 +1,5 @@ +
- {#key $ndkReady} - {#await $ndk.fetchEvent(data.id) then question} - {#if question} + {#if $question} + +
-

Question:
{question.content}

+

Question:
{$question.content}

@@ -51,15 +76,13 @@ {:else}

Loading...

{/if} - {:catch error} -

Error fetching question: {error.message}

- {/await} - {/key}
+ {#key $showReactions} {#each $comments.sort((a, b) => a.created_at - b.created_at).reverse() as event} - + {/each} + {/key}