Skip to content

Commit

Permalink
fix(web): change new dashboard widget ff condition (#7309)
Browse files Browse the repository at this point in the history
  • Loading branch information
jainpawan21 authored Dec 17, 2024
1 parent 93fb821 commit 82b7f72
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/web/src/components/nav/RootNavMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export const RootNavMenu: React.FC = () => {
const { updateOnboardingStatus, showOnboarding, isLoading: isLoadingOnboardingStatus } = useUserOnboardingStatus();
const { readonly: isEnvReadonly, environment } = useEnvironment();
const isV2Enabled = useFeatureFlag(FeatureFlagsKeysEnum.IS_V2_ENABLED);
const isNewDashboardEnabled = useFeatureFlag(FeatureFlagsKeysEnum.IS_NEW_DASHBOARD_ENABLED);
const [isLocalStudioModalOpen, toggleLocalStudioModalOpen] = useToggle();
const { navigateToLocalStudio } = useNavigateToLocalStudio({ fallbackFn: toggleLocalStudioModalOpen });

Expand Down Expand Up @@ -159,7 +160,7 @@ export const RootNavMenu: React.FC = () => {
></NavMenuLinkButton>
</When>
</NavMenuSection>
{isV2Enabled ? (
{isNewDashboardEnabled ? (
<>
<SidebarFooter>
{!IS_SELF_HOSTED && IS_EE_AUTH_ENABLED && <NewDashboardOptInWidget />}
Expand Down

0 comments on commit 82b7f72

Please sign in to comment.