From 16a611b9dfc3c66483640f4f5364646f41d37159 Mon Sep 17 00:00:00 2001 From: sct Date: Thu, 25 Mar 2021 14:56:29 +0900 Subject: [PATCH] fix(ui): correctly enable the request button when partial requests are disabled with no quota --- src/components/RequestModal/TvRequestModal.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/RequestModal/TvRequestModal.tsx b/src/components/RequestModal/TvRequestModal.tsx index 608efeb69..c840dc7fb 100644 --- a/src/components/RequestModal/TvRequestModal.tsx +++ b/src/components/RequestModal/TvRequestModal.tsx @@ -379,7 +379,8 @@ const TvRequestModal: React.FC = ({ editRequest ? false : !settings.currentSettings.partialRequestsEnabled && - unrequestedSeasons.length > (quota?.tv.limit ?? 0) + quota?.tv.limit && + unrequestedSeasons.length > quota.tv.limit ? true : getAllRequestedSeasons().length >= getAllSeasons().length || (settings.currentSettings.partialRequestsEnabled &&