Skip to content

Commit

Permalink
fix(web): Evaluate IS_V2_ENABLED feature flag correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
SokratisVidros committed Oct 7, 2024
1 parent 6fc8a05 commit d8d5274
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions apps/web/src/components/layout/components/v2/HeaderNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ export function HeaderNav() {
const { bridgeURL } = useStudioState();

const isSelfHosted = IS_SELF_HOSTED;
const isV2ExperienceEnabled = useFeatureFlag(FeatureFlagsKeysEnum.IS_V2_ENABLED);
const isV2Enabled = useFeatureFlag(FeatureFlagsKeysEnum.IS_V2_ENABLED);

const shouldShowNewNovuExperience = isV2ExperienceEnabled && bridgeURL;
const shouldShowNewNovuExperience = isV2Enabled && bridgeURL;

useBootIntercom();

Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/components/nav/RootNavMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const RootNavMenu: React.FC = () => {
const segment = useSegment();
const { updateOnboardingStatus, showOnboarding, isLoading: isLoadingOnboardingStatus } = useUserOnboardingStatus();
const { readonly: isEnvReadonly, environment } = useEnvironment();
const isV2Enabled = false;
const isV2Enabled = useFeatureFlag(FeatureFlagsKeysEnum.IS_V2_ENABLED);
const [isLocalStudioModalOpen, toggleLocalStudioModalOpen] = useToggle();
const { navigateToLocalStudio } = useNavigateToLocalStudio({ fallbackFn: toggleLocalStudioModalOpen });

Expand Down

0 comments on commit d8d5274

Please sign in to comment.