From 9522a93e38b91ae4feb7fd8113019a21c307dabb Mon Sep 17 00:00:00 2001 From: Alex Frantz Date: Sat, 16 Aug 2025 15:30:22 -0400 Subject: [PATCH] fix countdown --- src/components/Countdown.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/Countdown.tsx b/src/components/Countdown.tsx index 816e1ba..331e9e5 100644 --- a/src/components/Countdown.tsx +++ b/src/components/Countdown.tsx @@ -20,10 +20,10 @@ export default function Countdown() { if (countdownRef?.current) { let timerString = ""; - if (days) timerString += `${days}d, `; - if (hours) timerString += `${hours}h, `; - if (minutes) timerString += `${minutes}m, `; - if (seconds) timerString += `${seconds}s`; + timerString += `${days || "0"}d, `; + timerString += `${hours || "0"}h, `; + timerString += `${minutes || "0"}m, `; + timerString += `${seconds || "0"}s`; if ( days <= 0 &&