diff --git a/site/content/examples/21-miscellaneous/01-hacker-news/Item.svelte b/site/content/examples/21-miscellaneous/01-hacker-news/Item.svelte index e9cd617e96..f9bcdb4359 100644 --- a/site/content/examples/21-miscellaneous/01-hacker-news/Item.svelte +++ b/site/content/examples/21-miscellaneous/01-hacker-news/Item.svelte @@ -26,7 +26,9 @@

{item.title}

- {item.domain} + {#if item.domain != null} + {item.domain} + {/if}

submitted by {item.user} {item.time_ago} @@ -36,4 +38,4 @@ {#each item.comments as comment} {/each} - \ No newline at end of file +