From 93dc5851453d0f8129a681d8d549a4560f742edf Mon Sep 17 00:00:00 2001 From: Yunus M Date: Fri, 4 Apr 2025 18:33:55 +0530 Subject: [PATCH] fix: disable sidenav items for cloud users whose license has expired (#7524) --- frontend/src/providers/App/App.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/providers/App/App.tsx b/frontend/src/providers/App/App.tsx index 0c0bc421b3..d3002b25a2 100644 --- a/frontend/src/providers/App/App.tsx +++ b/frontend/src/providers/App/App.tsx @@ -21,6 +21,7 @@ import { useQuery } from 'react-query'; import { FeatureFlagProps as FeatureFlags } from 'types/api/features/getFeaturesFlags'; import { PayloadProps as LicensesResModel } from 'types/api/licenses/getAll'; import { + LicensePlatform, LicenseState, LicenseV3ResModel, TrialInfo, @@ -145,7 +146,8 @@ export function AppProvider({ children }: PropsWithChildren): JSX.Element { ).unix(), onTrial: isOnTrial, workSpaceBlock: - activeLicenseV3Data.payload.state === LicenseState.EVALUATION_EXPIRED, + activeLicenseV3Data.payload.state === LicenseState.EVALUATION_EXPIRED && + activeLicenseV3Data.payload.platform === LicensePlatform.CLOUD, trialConvertedToSubscription: activeLicenseV3Data.payload.state !== LicenseState.ISSUED && activeLicenseV3Data.payload.state !== LicenseState.EVALUATING &&