From c06d94f845dc18eb3bb944f3e818eb5608b3e5fd Mon Sep 17 00:00:00 2001 From: Lawrence Forman Date: Thu, 20 Jun 2024 12:37:28 -0400 Subject: [PATCH] fix countdown --- src/lib/components/contest-progress.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/components/contest-progress.svelte b/src/lib/components/contest-progress.svelte index 81c5447..fbab192 100644 --- a/src/lib/components/contest-progress.svelte +++ b/src/lib/components/contest-progress.svelte @@ -89,10 +89,10 @@ return `${Math.round(dt / ONE_HOUR_MS)} hours`; } if (dt > ONE_HOUR_MS) { - return `${Math.round(dt / ONE_HOUR_MS)} hour`; + return `1 hour`; } if (dt > ONE_MINUTE_MS * 2) { - return `${Math.round(dt / ONE_HOUR_MS)} minutes`; + return `${Math.round(dt / ONE_MINUTE_MS)} minutes`; } return `a few seconds`; }