Skip to content

Commit

Permalink
fix(ui): correctly enable the request button when partial requests ar…
Browse files Browse the repository at this point in the history
…e disabled with no quota
  • Loading branch information
sct committed Mar 25, 2021
1 parent 2059fc1 commit 16a611b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/RequestModal/TvRequestModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,8 @@ const TvRequestModal: React.FC<RequestModalProps> = ({
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 &&
Expand Down

0 comments on commit 16a611b

Please sign in to comment.