|
@@ -4,7 +4,7 @@ import FieldHelp from 'sentry/components/forms/fieldGroup/fieldHelp';
|
|
|
import {t} from 'sentry/locale';
|
|
|
import {space} from 'sentry/styles/space';
|
|
|
import type {Organization} from 'sentry/types';
|
|
|
-import {getRegionDataFromOrganization, shouldDisplayRegions} from 'sentry/utils/regions';
|
|
|
+import {getRegionDataFromOrganization, getRegions} from 'sentry/utils/regions';
|
|
|
import {DATA_STORAGE_DOCS_LINK} from 'sentry/views/organizationCreate';
|
|
|
|
|
|
type Props = {
|
|
@@ -21,7 +21,8 @@ const OrganizationFlag = styled('span')`
|
|
|
`;
|
|
|
|
|
|
export function OrganizationRegionAction({organization, ...props}: Props) {
|
|
|
- if (!organization || !shouldDisplayRegions()) {
|
|
|
+ const regionCount = getRegions().length;
|
|
|
+ if (!organization || regionCount <= 1) {
|
|
|
return null;
|
|
|
}
|
|
|
|