From 2f737aed16197e4cbd03efe931a8c0d8077ab454 Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Sat, 20 Apr 2024 04:42:27 -0700
Subject: fix(AiringTime): residual minutes fix hour

---
 src/lib/Media/Anime/Airing/AiringTime.svelte | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/lib/Media/Anime/Airing/AiringTime.svelte')

diff --git a/src/lib/Media/Anime/Airing/AiringTime.svelte b/src/lib/Media/Anime/Airing/AiringTime.svelte
index 72ce2219..57e016da 100644
--- a/src/lib/Media/Anime/Airing/AiringTime.svelte
+++ b/src/lib/Media/Anime/Airing/AiringTime.svelte
@@ -89,8 +89,8 @@
 					} else {
 						const residualMinutes = Math.round(minutes - Math.floor(hours) * 60);
 
-						timeFrame += `${hours.toFixed(0)}${shortenCountdown ? 'h' : '  hour'}${
-							hours === 1 || shortenCountdown ? '' : 's'
+						timeFrame += `${Math.floor(hours).toFixed(0)}${shortenCountdown ? 'h' : ' hour'}${
+							Math.floor(hours) === 1 || shortenCountdown ? '' : 's'
 						}`;
 
 						if (residualMinutes > 0)
-- 
cgit v1.2.3

