diff --git a/packages/console/src/pages/TenantSettings/Subscription/DowngradeConfirmModalContent/index.tsx b/packages/console/src/pages/TenantSettings/Subscription/DowngradeConfirmModalContent/index.tsx index fbe2cb4cc..3a36df960 100644 --- a/packages/console/src/pages/TenantSettings/Subscription/DowngradeConfirmModalContent/index.tsx +++ b/packages/console/src/pages/TenantSettings/Subscription/DowngradeConfirmModalContent/index.tsx @@ -3,7 +3,6 @@ import { useMemo } from 'react'; import { Trans, useTranslation } from 'react-i18next'; import PlanName from '@/components/PlanName'; -import { isDevFeaturesEnabled } from '@/consts/env'; import { type SubscriptionPlan } from '@/types/subscriptions'; import PlanQuotaDiffCard from './PlanQuotaDiffCard'; @@ -17,19 +16,9 @@ type Props = { function DowngradeConfirmModalContent({ currentPlan, targetPlan }: Props) { const { t } = useTranslation(undefined, { keyPrefix: 'admin_console' }); - const { - quota: currentFullQuota, - quota: { mfaEnabled: currentMfaEnabled, ...currentQuotaWithoutMfa }, - name: currentPlanName, - } = currentPlan; - const currentQuota = isDevFeaturesEnabled ? currentFullQuota : currentQuotaWithoutMfa; + const { quota: currentQuota, name: currentPlanName } = currentPlan; - const { - quota: targetFullQuota, - quota: { mfaEnabled: targetMfaEnabled, ...targetQuotaWithoutMfa }, - name: targetPlanName, - } = targetPlan; - const targetQuota = isDevFeaturesEnabled ? targetFullQuota : targetQuotaWithoutMfa; + const { quota: targetQuota, name: targetPlanName } = targetPlan; const currentQuotaDiff = useMemo( () => diff(targetQuota, currentQuota), diff --git a/packages/console/src/pages/TenantSettings/components/NotEligibleSwitchPlanModalContent/index.tsx b/packages/console/src/pages/TenantSettings/components/NotEligibleSwitchPlanModalContent/index.tsx index 9c7bb008e..7e51188ee 100644 --- a/packages/console/src/pages/TenantSettings/components/NotEligibleSwitchPlanModalContent/index.tsx +++ b/packages/console/src/pages/TenantSettings/components/NotEligibleSwitchPlanModalContent/index.tsx @@ -5,7 +5,6 @@ import { Trans, useTranslation } from 'react-i18next'; import ContactUsPhraseLink from '@/components/ContactUsPhraseLink'; import PlanName from '@/components/PlanName'; -import { isDevFeaturesEnabled } from '@/consts/env'; import { planQuotaItemOrder } from '@/consts/plan-quotas'; import { quotaItemLimitedPhrasesMap, @@ -33,14 +32,7 @@ function NotEligibleSwitchPlanModalContent({ targetPlan, isDowngrade = false }: keyPrefix: 'admin_console.subscription.not_eligible_modal', }); - const { - id, - name, - quota: fullQuota, - quota: { mfaEnabled, ...quotaWithoutMfa }, - } = targetPlan; - - const quota = isDevFeaturesEnabled ? fullQuota : quotaWithoutMfa; + const { id, name, quota } = targetPlan; const orderedEntries = useMemo(() => { // eslint-disable-next-line no-restricted-syntax