mirror of
https://github.com/sct/overseerr.git
synced 2025-09-17 17:24:35 +02:00
fix(quotas): do not count already-requested seasons when editing TV request (#1649)
This commit is contained in:
@@ -92,7 +92,9 @@ const TvRequestModal: React.FC<RequestModalProps> = ({
|
|||||||
);
|
);
|
||||||
|
|
||||||
const currentlyRemaining =
|
const currentlyRemaining =
|
||||||
(quota?.tv.remaining ?? 0) - selectedSeasons.length;
|
(quota?.tv.remaining ?? 0) -
|
||||||
|
selectedSeasons.length +
|
||||||
|
(editRequest?.seasons ?? []).length;
|
||||||
|
|
||||||
const updateRequest = async () => {
|
const updateRequest = async () => {
|
||||||
if (!editRequest) {
|
if (!editRequest) {
|
||||||
|
Reference in New Issue
Block a user