diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2022-05-10 21:53:25 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2022-05-10 21:53:25 -0300 |
commit | 861c4086c6355f6551f6d1dccbf6d9766c6b1d15 (patch) | |
tree | 317b35fbc4a5248e6bec84642bd0a6a5fb2cf289 /src/page | |
parent | 89ae8d37a9658da0be528e822a6e8116074334fb (diff) |
port the rest of everything
Diffstat (limited to 'src/page')
-rw-r--r-- | src/page/album.js | 2 | ||||
-rw-r--r-- | src/page/artist.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/page/album.js b/src/page/album.js index 45e5439a..5ea7c5a0 100644 --- a/src/page/album.js +++ b/src/page/album.js @@ -33,7 +33,7 @@ export function write(album, {wikiData}) { language }) => { const itemOpts = { - duration: language.formatDuration(track.duration), + duration: language.formatDuration(track.duration ?? 0), track: link.track(track) }; return `<li style="${getLinkThemeString(track.color)}">${ diff --git a/src/page/artist.js b/src/page/artist.js index 0bfcf1c4..c15e0342 100644 --- a/src/page/artist.js +++ b/src/page/artist.js @@ -187,7 +187,7 @@ export function write(artist, {wikiData}) { aka: track.aka, entry: language.$('artistPage.creditList.entry.track.withDuration', { track: link.track(track), - duration: language.formatDuration(track.duration) + duration: language.formatDuration(track.duration ?? 0) }), ...props })) |