mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-05 23:43:57 +00:00
cleanup
This commit is contained in:
@@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
export const timeFormat = 'HH:mm';
|
||||
export const timeFormatSeconds = 'HH:mm:ss';
|
||||
|
||||
// make date with string
|
||||
export const timeToDate = (time) => {
|
||||
|
||||
Reference in New Issue
Block a user