Skip to content

Commit

Permalink
feat(setup-wizard): Remove project create feature check (#83905)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurKnaus authored Jan 23, 2025
1 parent ed3f82b commit 63024d3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
5 changes: 0 additions & 5 deletions static/app/views/setupWizard/utils/features.tsx

This file was deleted.

4 changes: 1 addition & 3 deletions static/app/views/setupWizard/wizardProjectSelection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import {useDebouncedValue} from 'sentry/utils/useDebouncedValue';
import {useCompactSelectOptionsCache} from 'sentry/views/insights/common/utils/useCompactSelectOptionsCache';
import {ProjectLoadingError} from 'sentry/views/setupWizard/projectLoadingError';
import type {OrganizationWithRegion} from 'sentry/views/setupWizard/types';
import {hasSetupWizardCreateProjectFeature} from 'sentry/views/setupWizard/utils/features';
import {useCreateProjectFromWizard} from 'sentry/views/setupWizard/utils/useCreateProjectFromWizard';
import {useOrganizationDetails} from 'sentry/views/setupWizard/utils/useOrganizationDetails';
import {useOrganizationProjects} from 'sentry/views/setupWizard/utils/useOrganizationProjects';
Expand Down Expand Up @@ -87,10 +86,9 @@ export function WizardProjectSelection({

const isCreationEnabled =
orgDetailsRequest.data &&
canCreateProject(orgDetailsRequest.data) &&
teamsRequest.data &&
teamsRequest.data.length > 0 &&
hasSetupWizardCreateProjectFeature(orgDetailsRequest.data) &&
canCreateProject(orgDetailsRequest.data) &&
platformParam;

const updateWizardCacheMutation = useUpdateWizardCache(hash);
Expand Down

0 comments on commit 63024d3

Please sign in to comment.