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

This commit is contained in:
TheCatLady
2021-05-16 19:14:46 -04:00
committed by GitHub
parent 22415642e8
commit 808ccf1c69

View File

@@ -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) {