From 8ae7249a5bb12f23d402f0ede32956827de4e111 Mon Sep 17 00:00:00 2001
From: Ruben Beltran del Rio <ruben@unlimited.pizza>
Date: Thu, 22 Apr 2021 00:18:28 +0200
Subject: Add blink test + coverage improvements

---
 src/components/topic/topic.svelte | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/components/topic/topic.svelte')

diff --git a/src/components/topic/topic.svelte b/src/components/topic/topic.svelte
index 0b73d44..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);
 </script>
 
-- 
cgit 

