diff options
| -rw-r--r-- | src/web/src/lib/util.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/web/src/lib/util.js b/src/web/src/lib/util.js index 99b16148..755546de 100644 --- a/src/web/src/lib/util.js +++ b/src/web/src/lib/util.js @@ -1,5 +1,5 @@ export const formatSeconds = (seconds) => { - if (Number.isNaN(seconds)) return ''; + if (seconds === undefined) return ''; const date = new Date(1_970, 0, 1); date.setSeconds(seconds); if (seconds >= 3_600) { |
