fix(quotas): do not count already-requested seasons when editing TV request (#1649)

pull/1644/head
TheCatLady 4 years ago committed by GitHub
parent 22415642e8
commit 808ccf1c69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -92,7 +92,9 @@ const TvRequestModal: React.FC<RequestModalProps> = ({
);
const currentlyRemaining =
(quota?.tv.remaining ?? 0) - selectedSeasons.length;
(quota?.tv.remaining ?? 0) -
selectedSeasons.length +
(editRequest?.seasons ?? []).length;
const updateRequest = async () => {
if (!editRequest) {

Loading…
Cancel
Save