diff options
| author | milleniumbug <milleniumbug@protonmail.com> | 2024-06-30 20:58:57 +0200 |
|---|---|---|
| committer | milleniumbug <milleniumbug@protonmail.com> | 2024-06-30 20:58:57 +0200 |
| commit | 6b3bdb6610fa14d196ef5c02ce052e545eb6879d (patch) | |
| tree | 7e241aec5f0444f129fb9b09bf6cb59e8b9946c3 /src/web | |
| parent | 1e33bcab3788bb93361bab0bba6a72277285591d (diff) | |
| download | slskd-6b3bdb6610fa14d196ef5c02ce052e545eb6879d.tar.gz | |
Fix issue #1126
Diffstat (limited to 'src/web')
| -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) { |
