fix: Don't show all seasons numbers in request modal [Jellyseerr] #580

This commit is contained in:
herrrta
2025-03-02 12:38:58 -05:00
parent bd908516b5
commit 9b1dd0923a
11 changed files with 16 additions and 11 deletions

View File

@@ -106,7 +106,12 @@ const RequestModal = forwardRef<BottomSheetModalMethods, Props & Omit<ViewProps,
);
const seasonTitle = useMemo(
() => requestBody?.seasons?.length ? t("jellyseerr.season_x", {seasons: requestBody?.seasons}) : undefined,
() => {
if (requestBody?.seasons && requestBody?.seasons?.length > 1) {
return t("jellyseerr.season_all")
}
return t("jellyseerr.season_number", {season_number: requestBody?.seasons})
},
[requestBody?.seasons]
);