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

This commit is contained in:
sct
2021-03-25 14:56:29 +09:00
parent 2059fc1cd4
commit 16a611b9df

View File

@@ -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 &&