fix: format minutes and seconds in Giveaway component for better readability

This commit is contained in:
TrèsAbhi committed 2025-12-04 14:20:23 -06:00
1 parent 9286104391
commit 7e8fd40c61
1 file changed
+6 -2
+6 -2
View File
@@ -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 = (
<>