]> git.r.bdr.sh - rbdr/forum/blobdiff - src/components/topic/topic.svelte
Add topics store pact tests
[rbdr/forum] / src / components / topic / topic.svelte
index 0b73d44e322ff505a75bf126d1d7447d2a86b2a8..c0dbfbc4b23755754a2103b1619ac756a7b30961 100644 (file)
@@ -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);
 </script>