From cf30037a8506aee25d12a9722c318962d5ba4e9e Mon Sep 17 00:00:00 2001 From: Paul Bienkowski Date: Thu, 13 May 2021 20:20:41 +0200 Subject: [PATCH] frontend: Show actual track duration, not dummy data from testing the code --- frontend/src/pages/TrackPage/TrackDetails.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/pages/TrackPage/TrackDetails.tsx b/frontend/src/pages/TrackPage/TrackDetails.tsx index 5ca122f..391eb7e 100644 --- a/frontend/src/pages/TrackPage/TrackDetails.tsx +++ b/frontend/src/pages/TrackPage/TrackDetails.tsx @@ -37,10 +37,10 @@ export default function TrackDetails({track, isAuthor}) { )} - {track.duration == null && ( + {track.statistics?.duration != null && ( Duration - {formatDuration(track.duration || 1402)} + {formatDuration(track.statistics.duration)} )}