From 7e8fd40c614544f584fef9ff949ade79cfe7f441 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Thu, 4 Dec 2025 14:20:23 -0600 Subject: [PATCH] fix: format minutes and seconds in Giveaway component for better readability --- packages/website/src/components/Giveaway.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/website/src/components/Giveaway.tsx b/packages/website/src/components/Giveaway.tsx index 02168d4da..8b21dd917 100644 --- a/packages/website/src/components/Giveaway.tsx +++ b/packages/website/src/components/Giveaway.tsx @@ -22,8 +22,12 @@ export function Giveaway({ skeleton }: MaybeSkeletonComponentProps) { if (timeLeft > 0) { const hours = Math.floor(timeLeft / (1000 * 60 * 60)); - const minutes = Math.floor((timeLeft / (1000 * 60)) % 60); - const seconds = Math.floor((timeLeft / 1000) % 60); + const minutes = Math.floor((timeLeft / (1000 * 60)) % 60) + .toString() + .padStart(2, "0"); + const seconds = Math.floor((timeLeft / 1000) % 60) + .toString() + .padStart(2, "0"); string = ( <>