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);
</script>