frontend: Show actual track duration, not dummy data from testing the code

This commit is contained in:
Paul Bienkowski 2021-05-13 20:20:41 +02:00
parent 798ff9fb1b
commit cf30037a85

View file

@ -37,10 +37,10 @@ export default function TrackDetails({track, isAuthor}) {
</List.Item>
)}
{track.duration == null && (
{track.statistics?.duration != null && (
<List.Item>
<List.Header>Duration</List.Header>
{formatDuration(track.duration || 1402)}
{formatDuration(track.statistics.duration)}
</List.Item>
)}