diff options
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 })) |