diff --git a/app/helpers/auto-approval-check.ts b/app/helpers/auto-approval-check.ts index 4f45d5f6a..6a9a76e2e 100644 --- a/app/helpers/auto-approval-check.ts +++ b/app/helpers/auto-approval-check.ts @@ -139,13 +139,11 @@ export const checkIfQuotaAutoApproval = async ( productionQuota: currentQuota.productionQuota, }; - let isAutoApprovalAvailable = checkNoQuotaChange(castCurrentQuota, requestedQuota); - if (!isAutoApprovalAvailable) { - isAutoApprovalAvailable = !checkIfQuotaUpgrade(castCurrentQuota, requestedQuota); - } - const namespaceNames: string[] = []; - const resourceNames: string[] = []; + let isAutoApprovalAvailable = !checkIfQuotaUpgrade(castCurrentQuota, requestedQuota); + if (!isAutoApprovalAvailable) { + const namespaceNames: string[] = []; + const resourceNames: string[] = []; let hasIncreasedSignificantly = false; // Iterate over each environment's quota // @ts-ignore