From 53d31dc6f84ecea46b12f17c15a346d1baafa30f Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Sun, 1 Oct 2023 15:58:10 -0700
Subject: feat(title): fix count to number type

---
 src/lib/List/ListTitle.svelte | 6 ++++--
 1 file changed, 4 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 0cfc1273..72684b92 100644
--- a/src/lib/List/ListTitle.svelte
+++ b/src/lib/List/ListTitle.svelte
@@ -1,12 +1,14 @@
 <script lang="ts">
 	export let time: number | undefined = undefined;
-	export let count: number | string = '...';
+	export let count = -1337;
 	export let anime = false;
 	export let custom = '';
 </script>
 
 <summary>
-	{custom.length !== 0 ? custom : anime ? 'Anime' : 'Manga & Light Novels'} [{count}]
+	{custom.length !== 0 ? custom : anime ? 'Anime' : 'Manga & Light Novels'} [{count === -1337
+		? '...'
+		: count}]
 	<small style="opacity: 50%">{time ? time.toFixed(3) : '...'}s</small>
 	<slot />
 </summary>
-- 
cgit v1.2.3

