From 8d62de0f747c4ffaa9f9685d70d6e3fe1dee8e19 Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Mon, 1 Jan 2024 16:05:01 -0800
Subject: fix(schedule): null episodes

---
 src/routes/schedule/+page.svelte | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'src/routes/schedule/+page.svelte')

diff --git a/src/routes/schedule/+page.svelte b/src/routes/schedule/+page.svelte
index 8f711fae..1524aa06 100644
--- a/src/routes/schedule/+page.svelte
+++ b/src/routes/schedule/+page.svelte
@@ -153,7 +153,9 @@
 											{#if media && media.nextAiringEpisode}
 												<span style="opacity: 50%;">
 													&nbsp;
-													{media.nextAiringEpisode?.episode}/{media.episodes} at
+													{media.nextAiringEpisode?.episode}{media.episodes
+														? `/${media.episodes}`
+														: ''} at
 												</span>
 											{/if}
 											{entry.time}
-- 
cgit v1.2.3

