diff options
| author | Fuwn <[email protected]> | 2024-04-20 04:42:27 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-04-20 04:42:27 -0700 |
| commit | 2f737aed16197e4cbd03efe931a8c0d8077ab454 (patch) | |
| tree | 03e7bcb06ec17d675252d9e89d36887edd1f4e0d /src/lib | |
| parent | feat(badges): previous and next button for preview (diff) | |
| download | due.moe-2f737aed16197e4cbd03efe931a8c0d8077ab454.tar.xz due.moe-2f737aed16197e4cbd03efe931a8c0d8077ab454.zip | |
fix(AiringTime): residual minutes fix hour
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/Media/Anime/Airing/AiringTime.svelte | 4 |
1 files changed, 2 insertions, 2 deletions
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) |