@@ -32,7 +32,6 @@ import {CLOUD} from 'src/shared/constants'
3232// Utils
3333import { isFlagEnabled } from 'src/shared/utils/featureFlag'
3434import { convertStringToEpoch } from 'src/shared/utils/dateTimeUtils'
35- import { shouldUseQuartzIdentity } from 'src/identity/utils/shouldUseQuartzIdentity'
3635import { updateReportingContext } from 'src/cloud/utils/reporting'
3736
3837// Types
@@ -41,13 +40,10 @@ import {PROJECT_NAME} from 'src/flows'
4140import { RemoteDataState } from 'src/types'
4241
4342// Thunks
44- import {
45- getCurrentOrgDetailsThunk ,
46- getQuartzIdentityThunk ,
47- } from 'src/identity/actions/thunks'
43+ import { getQuartzIdentityThunk } from 'src/identity/actions/thunks'
4844
4945const canAccessCheckout = ( me : Me ) : boolean => {
50- if ( ! ! me ?. isRegionBeta ) {
46+ if ( Boolean ( me ?. isRegionBeta ) ) {
5147 return false
5248 }
5349 return me ?. accountType !== 'pay_as_you_go' && me ?. accountType !== 'contract'
@@ -64,14 +60,6 @@ const GetOrganizations: FunctionComponent = () => {
6460
6561 const dispatch = useDispatch ( )
6662
67- const identityOrgId = identity . currentIdentity . org . id
68-
69- useEffect ( ( ) => {
70- if ( identityOrgId && shouldUseQuartzIdentity ( ) && ! quartzMe ?. isRegionBeta ) {
71- dispatch ( getCurrentOrgDetailsThunk ( identityOrgId ) )
72- }
73- } , [ identityOrgId ] ) // eslint-disable-line react-hooks/exhaustive-deps
74-
7563 // This doesn't require another API call.
7664 useEffect ( ( ) => {
7765 if ( status === RemoteDataState . NotStarted ) {
0 commit comments