fix countdown
This commit is contained in:
@@ -20,10 +20,10 @@ export default function Countdown() {
|
|||||||
|
|
||||||
if (countdownRef?.current) {
|
if (countdownRef?.current) {
|
||||||
let timerString = "";
|
let timerString = "";
|
||||||
if (days) timerString += `${days}d, `;
|
timerString += `${days || "0"}d, `;
|
||||||
if (hours) timerString += `${hours}h, `;
|
timerString += `${hours || "0"}h, `;
|
||||||
if (minutes) timerString += `${minutes}m, `;
|
timerString += `${minutes || "0"}m, `;
|
||||||
if (seconds) timerString += `${seconds}s`;
|
timerString += `${seconds || "0"}s`;
|
||||||
|
|
||||||
if (
|
if (
|
||||||
days <= 0 &&
|
days <= 0 &&
|
||||||
|
|||||||
Reference in New Issue
Block a user