frontend: Show actual track duration, not dummy data from testing the code
This commit is contained in:
parent
798ff9fb1b
commit
cf30037a85
|
@ -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>
|
||||
)}
|
||||
|
||||
|
|
Loading…
Reference in a new issue