This commit is contained in:
cv
2021-04-07 14:50:43 +02:00
parent de4995f136
commit 4ba9ee452e
2 changed files with 2 additions and 1 deletions
@@ -11,7 +11,7 @@ function display(seconds) {
export default function Countdown({ time, small }) {
return (
<div className={small ? styles.countdownClockSmall : styles.countdownClock}>
{time === null ? '-- : -- : --' : display(time)}
{(time === null || isNaN(time)) ? '-- : -- : --' : display(time)}
</div>
);
}