Skip to content

Commit

Permalink
fix(MetaDetails): set first season as default
Browse files Browse the repository at this point in the history
  • Loading branch information
tymmesyde committed Jan 9, 2024
1 parent c4611cc commit 167f820
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routes/MetaDetails/VideosList/VideosList.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ const VideosList = ({ className, metaItem, libraryItem, season, seasonOnSelect,

const nonSpecialSeasons = seasons.filter((season) => season !== 0);
if (nonSpecialSeasons.length > 0) {
return nonSpecialSeasons[nonSpecialSeasons.length - 1];
return nonSpecialSeasons[0];
}

if (seasons.length > 0) {
return seasons[seasons.length - 1];
return seasons[0];
}

return null;
Expand Down

0 comments on commit 167f820

Please sign in to comment.