fix: get started on available for cloud users (#6103)

Co-authored-by: Vikrant Gupta <vikrant.thomso@gmail.com>
This commit is contained in:
Yunus M 2024-10-01 13:32:11 +05:30 committed by GitHub
parent 266ed58908
commit e1ca71dcea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
@ -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,