Skip to content

Commit de8851d

Browse files
committed
chore: remove unnecessary CLOUD checks
1 parent 4b3f00c commit de8851d

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

src/checkout/context/checkout.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ import {getQuartzIdentityThunk} from 'src/identity/actions/thunks'
3535
import {selectCurrentIdentity} from 'src/identity/selectors'
3636
import {shouldGetCredit250Experience} from 'src/me/selectors'
3737

38-
// Constants
39-
import {CLOUD} from 'src/shared/constants'
40-
4138
export type Props = {
4239
children: JSX.Element
4340
}
@@ -316,9 +313,7 @@ export const CheckoutProvider: FC<Props> = React.memo(({children}) => {
316313
} finally {
317314
setIsSubmitting(false)
318315
// Refresh whether user is allowed to create new orgs after upgrading to PAYG.
319-
if (CLOUD) {
320316
dispatch(getOrgCreationAllowancesThunk())
321-
}
322317
}
323318
},
324319
[

src/identity/components/GlobalHeader/OrgDropdown.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
import {OrganizationSummaries} from 'src/client/unityRoutes'
1515

1616
// Constants
17-
import {CLOUD, CLOUD_URL} from 'src/shared/constants'
17+
import {CLOUD_URL} from 'src/shared/constants'
1818

1919
// Eventing
2020
import {
@@ -75,7 +75,7 @@ export const OrgDropdown: FC<Props> = ({activeOrg, orgsList}) => {
7575
}
7676

7777
useEffect(() => {
78-
if (CLOUD && orgCreationAllowanceStatus === RemoteDataState.NotStarted) {
78+
if (orgCreationAllowanceStatus === RemoteDataState.NotStarted) {
7979
dispatch(getOrgCreationAllowancesThunk())
8080
}
8181
}, [dispatch, orgCreationAllowanceStatus])

0 commit comments

Comments
 (0)