diff --git a/src/components/StatusBadge/index.tsx b/src/components/StatusBadge/index.tsx
index 3dbe6e74b3..b60b7af04d 100644
--- a/src/components/StatusBadge/index.tsx
+++ b/src/components/StatusBadge/index.tsx
@@ -166,11 +166,11 @@ const StatusBadge = ({
{inProgress && (
<>
- {mediaType === 'tv' && (
+ {mediaType === 'tv' && downloadItem[0].episode && (
{intl.formatMessage(messages.seasonepisodenumber, {
- seasonNumber: downloadItem[0].episode?.seasonNumber,
- episodeNumber: downloadItem[0].episode?.episodeNumber,
+ seasonNumber: downloadItem[0].episode.seasonNumber,
+ episodeNumber: downloadItem[0].episode.episodeNumber,
})}
)}
@@ -219,11 +219,11 @@ const StatusBadge = ({
{inProgress && (
<>
- {mediaType === 'tv' && (
+ {mediaType === 'tv' && downloadItem[0].episode && (
{intl.formatMessage(messages.seasonepisodenumber, {
- seasonNumber: downloadItem[0].episode?.seasonNumber,
- episodeNumber: downloadItem[0].episode?.episodeNumber,
+ seasonNumber: downloadItem[0].episode.seasonNumber,
+ episodeNumber: downloadItem[0].episode.episodeNumber,
})}
)}
@@ -272,11 +272,11 @@ const StatusBadge = ({
{inProgress && (
<>
- {mediaType === 'tv' && (
+ {mediaType === 'tv' && downloadItem[0].episode && (
{intl.formatMessage(messages.seasonepisodenumber, {
- seasonNumber: downloadItem[0].episode?.seasonNumber,
- episodeNumber: downloadItem[0].episode?.episodeNumber,
+ seasonNumber: downloadItem[0].episode.seasonNumber,
+ episodeNumber: downloadItem[0].episode.episodeNumber,
})}
)}