From 3f35b8c886fc85de62bf2412474c9612dd088992 Mon Sep 17 00:00:00 2001 From: fallenbagel <98979876+fallenbagel@users.noreply.github.com> Date: Fri, 16 Jan 2026 13:19:13 +0500 Subject: [PATCH] fix(ui): correct season pluralisation in RequestCard (#2305) Fixes incorrect "seasons" label when only one season is requested. The plural form was being used regardless of the actual count fix #2263 --- src/components/RequestCard/index.tsx | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/components/RequestCard/index.tsx b/src/components/RequestCard/index.tsx index 95b2bfaf..effac30e 100644 --- a/src/components/RequestCard/index.tsx +++ b/src/components/RequestCard/index.tsx @@ -5,7 +5,6 @@ import Tooltip from '@app/components/Common/Tooltip'; import RequestModal from '@app/components/RequestModal'; import StatusBadge from '@app/components/StatusBadge'; import useDeepLinks from '@app/hooks/useDeepLinks'; -import useSettings from '@app/hooks/useSettings'; import { Permission, useUser } from '@app/hooks/useUser'; import globalMessages from '@app/i18n/globalMessages'; import defineMessages from '@app/utils/defineMessages'; @@ -219,7 +218,6 @@ interface RequestCardProps { } const RequestCard = ({ request, onTitleData }: RequestCardProps) => { - const settings = useSettings(); const { ref, inView } = useInView({ triggerOnce: true, }); @@ -402,14 +400,7 @@ const RequestCard = ({ request, onTitleData }: RequestCardProps) => {
{intl.formatMessage(messages.seasons, { - seasonCount: - (settings.currentSettings.enableSpecialEpisodes - ? title.seasons.length - : title.seasons.filter( - (season) => season.seasonNumber !== 0 - ).length) === request.seasons.length - ? 0 - : request.seasons.length, + seasonCount: request.seasons.length, })}