diff --git a/frontend/src/routes/MoviePage/PageContent.tsx b/frontend/src/routes/MoviePage/PageContent.tsx index 75fbe6e..cb108ad 100644 --- a/frontend/src/routes/MoviePage/PageContent.tsx +++ b/frontend/src/routes/MoviePage/PageContent.tsx @@ -3,6 +3,8 @@ import TextSkeleton from '@comp/TextSkeleton' import Pill from '@comp/Pill' const PageContent: React.FC<{ movie: ApiResponse['movie']; isFetched: boolean }> = ({ movie, isFetched }) => { + const runtime = movie?.runtime ? `${Math.floor(movie?.runtime / 60)}h ${movie?.runtime % 60}m` : '' + return (
@@ -63,7 +65,7 @@ const PageContent: React.FC<{ movie: ApiResponse['movie']; isFetched: boolean }> Runtime {isFetched ? (
- {movie?.runtime} + {runtime}
) : (