diff --git a/frontend/components/VideoListItem.tsx b/frontend/components/VideoListItem.tsx index c5d66b4..7ea5533 100644 --- a/frontend/components/VideoListItem.tsx +++ b/frontend/components/VideoListItem.tsx @@ -34,7 +34,11 @@ export default function VideoListItem({ }) { let displayDuration = null; if (duration !== null) { - displayDuration = duration; + if (typeof duration === 'string') { + displayDuration = parseFloat(duration); + } else { + displayDuration = duration; + } } else if ( sourceVideoStart !== null && sourceVideoEnd !== null