diff --git a/packages/ui-react/src/pages/ScreenRouting/mediaScreens/MediaLiveChannel/MediaLiveChannel.tsx b/packages/ui-react/src/pages/ScreenRouting/mediaScreens/MediaLiveChannel/MediaLiveChannel.tsx index 7918206e5..54a056597 100644 --- a/packages/ui-react/src/pages/ScreenRouting/mediaScreens/MediaLiveChannel/MediaLiveChannel.tsx +++ b/packages/ui-react/src/pages/ScreenRouting/mediaScreens/MediaLiveChannel/MediaLiveChannel.tsx @@ -1,24 +1,25 @@ import { Navigate } from 'react-router-dom'; import type { PlaylistItem } from '@jwp/ott-common/types/playlist'; -import { isLiveChannel } from '@jwp/ott-common/src/utils/media'; import { liveChannelsURL } from '@jwp/ott-common/src/utils/urlFormatting'; import type { ScreenComponent } from '../../../../../types/screens'; -import ErrorPage from '../../../../components/ErrorPage/ErrorPage'; import Loading from '../../../Loading/Loading'; +import MediaMovie from '../MediaMovie/MediaMovie'; const MediaLiveChannel: ScreenComponent = ({ data, isLoading }) => { - const liveChannelsId = isLiveChannel(data) ? data.liveChannelsId : undefined; + const liveChannelsId = data.liveChannelsId; - if (data && !isLoading && liveChannelsId) { - return ; + if (isLoading) { + return ; } - if (!liveChannelsId) { - return ; + // this live channel is part of a live channels (TV Guide) page + if (liveChannelsId) { + return ; } - return ; + // this live channel is "just" a media item + return ; }; export default MediaLiveChannel;