diff options
| author | Paul-Christian Volkmer | 2026-01-09 10:38:30 +0100 |
|---|---|---|
| committer | GitHub | 2026-01-09 09:38:30 +0000 |
| commit | 8ed5b944ad4ff0429da320b38642e8d552706444 (patch) | |
| tree | f843cae699fe4534a6aa09906f41564d43f1eb44 /src/web/main.js | |
| parent | a777b837bbbd984df1cbf2e972efba4f5df19606 (diff) | |
fix: possible sorting errors in bar chart (#241)
Diffstat (limited to 'src/web/main.js')
| -rw-r--r-- | src/web/main.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/web/main.js b/src/web/main.js index ca1ecc9..b72396a 100644 --- a/src/web/main.js +++ b/src/web/main.js @@ -1,4 +1,4 @@ -import * as styles from './style.css'; +import './style.css'; import 'htmx.org'; @@ -8,7 +8,7 @@ const dateTimeFormat = new Intl.DateTimeFormat('de-DE', dateTimeFormatOptions); const formatTimeElements = () => { Array.from(document.getElementsByTagName('time')).forEach((timeTag) => { let date = Date.parse(timeTag.getAttribute('datetime')); - if (! isNaN(date)) { + if (! Number.isNaN(date)) { timeTag.innerText = dateTimeFormat.format(date); } }); |
