X-Git-Url: https://git.r.bdr.sh/rbdr/forum/blobdiff_plain/58f7d52150456713d3132408668a92d0f6f3d084..2a37b2ec11c46fc87dae084bc0a7659b198311aa:/src/components/topic/topic.svelte diff --git a/src/components/topic/topic.svelte b/src/components/topic/topic.svelte index 181b429..c0dbfbc 100644 --- a/src/components/topic/topic.svelte +++ b/src/components/topic/topic.svelte @@ -5,7 +5,7 @@ import Post from '$/components/post/post.svelte'; import { readableTime } from '$/utils/readable_time.js'; - $: remainingTime = topic ? topic.updated_at + topic.ttl - Date.now() : 0; + $: remainingTime = topic.updated_at + topic.ttl - Date.now(); $: remaining = readableTime(remainingTime); @@ -13,28 +13,28 @@

{topic.title}

{#if topic.tags.length > 0} {/if}