Skip to content

Commit

Permalink
fix: get started on available for cloud users (#6103)
Browse files Browse the repository at this point in the history
Co-authored-by: Vikrant Gupta <[email protected]>
  • Loading branch information
YounixM and vikrantgupta25 authored Oct 1, 2024
1 parent 266ed58 commit e1ca71d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions frontend/src/AppRoutes/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,6 @@ function App(): JSX.Element {

const isDarkMode = useIsDarkMode();

const isOnboardingEnabled =
useFeatureFlags(FeatureKeys.ONBOARDING)?.active || false;

const isChatSupportEnabled =
useFeatureFlags(FeatureKeys.CHAT_SUPPORT)?.active || false;

Expand All @@ -77,6 +74,10 @@ function App(): JSX.Element {
},
});

const isOnboardingEnabled =
allFlags.find((flag) => flag.name === FeatureKeys.ONBOARDING)?.active ||
false;

if (!isOnboardingEnabled || !isCloudUserVal) {
const newRoutes = routes.filter(
(route) => route?.path !== ROUTES.GET_STARTED,
Expand Down

0 comments on commit e1ca71d

Please sign in to comment.