diff --git a/src/client/components/player/Player.tsx b/src/client/components/player/Player.tsx
index 1a21141d..f32de113 100644
--- a/src/client/components/player/Player.tsx
+++ b/src/client/components/player/Player.tsx
@@ -41,7 +41,7 @@ art = {},
} = {}
} = {},
play,
- listenedDuration,
+ listenedDuration = 0,
status: {
calculated = '???',
reported,
@@ -52,7 +52,7 @@ art = {},
let durPer = null;
if(duration !== undefined && duration !== null && duration !== 0) {
- if(listenedDuration === 0) {
+ if(listenedDuration === 0 || listenedDuration === null) {
durPer = ' (0%)';
} else {
durPer = ` (${((listenedDuration/duration) * 100).toFixed(0)}%)`;
@@ -97,7 +97,7 @@ art = {},
Status: {capitalize(calculated)}
-Listened: {calculated !== 'stopped' ? `${listenedDuration.toFixed(0)}s` : '-'}{durPer}
+Listened: {calculated !== 'stopped' && listenedDuration !== null ? `${listenedDuration.toFixed(0)}s` : '-'}{durPer}