From 808ccf1c6975f853db6dc89f4d9f1f5488dbaae3 Mon Sep 17 00:00:00 2001 From: TheCatLady <52870424+TheCatLady@users.noreply.github.com> Date: Sun, 16 May 2021 19:14:46 -0400 Subject: [PATCH] fix(quotas): do not count already-requested seasons when editing TV request (#1649) --- src/components/RequestModal/TvRequestModal.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/RequestModal/TvRequestModal.tsx b/src/components/RequestModal/TvRequestModal.tsx index 64aa14812..1d6a9e640 100644 --- a/src/components/RequestModal/TvRequestModal.tsx +++ b/src/components/RequestModal/TvRequestModal.tsx @@ -92,7 +92,9 @@ const TvRequestModal: React.FC = ({ ); const currentlyRemaining = - (quota?.tv.remaining ?? 0) - selectedSeasons.length; + (quota?.tv.remaining ?? 0) - + selectedSeasons.length + + (editRequest?.seasons ?? []).length; const updateRequest = async () => { if (!editRequest) {