From 20ba2dce8bbb194a5a1cb901f7119746e527ae2a Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Fri, 29 Sep 2023 22:47:13 -0700
Subject: fix(list): restrict to number

---
 src/lib/List/ListTitle.svelte | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/lib/List/ListTitle.svelte')

diff --git a/src/lib/List/ListTitle.svelte b/src/lib/List/ListTitle.svelte
index 2aa580d3..0cfc1273 100644
--- a/src/lib/List/ListTitle.svelte
+++ b/src/lib/List/ListTitle.svelte
@@ -1,5 +1,5 @@
 <script lang="ts">
-	export let time: number | string = '...';
+	export let time: number | undefined = undefined;
 	export let count: number | string = '...';
 	export let anime = false;
 	export let custom = '';
@@ -7,6 +7,6 @@
 
 <summary>
 	{custom.length !== 0 ? custom : anime ? 'Anime' : 'Manga & Light Novels'} [{count}]
-	<small style="opacity: 50%">{time}s</small>
+	<small style="opacity: 50%">{time ? time.toFixed(3) : '...'}s</small>
 	<slot />
 </summary>
-- 
cgit v1.2.3

