fix(ui): correctly enable the request button when partial requests are disabled with no quota

pull/1288/head
sct 4 years ago
parent 2059fc1cd4
commit 16a611b9df
No known key found for this signature in database
GPG Key ID: 06A50468C67E272F

@ -379,7 +379,8 @@ const TvRequestModal: React.FC<RequestModalProps> = ({
editRequest editRequest
? false ? false
: !settings.currentSettings.partialRequestsEnabled && : !settings.currentSettings.partialRequestsEnabled &&
unrequestedSeasons.length > (quota?.tv.limit ?? 0) quota?.tv.limit &&
unrequestedSeasons.length > quota.tv.limit
? true ? true
: getAllRequestedSeasons().length >= getAllSeasons().length || : getAllRequestedSeasons().length >= getAllSeasons().length ||
(settings.currentSettings.partialRequestsEnabled && (settings.currentSettings.partialRequestsEnabled &&

Loading…
Cancel
Save