Skip to content

Commit

Permalink
chore: remove unnecessary CLOUD checks
Browse files Browse the repository at this point in the history
  • Loading branch information
wdoconnell committed Mar 3, 2023
1 parent 4b3f00c commit 61acac8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
7 changes: 1 addition & 6 deletions src/checkout/context/checkout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ import {getQuartzIdentityThunk} from 'src/identity/actions/thunks'
import {selectCurrentIdentity} from 'src/identity/selectors'
import {shouldGetCredit250Experience} from 'src/me/selectors'

// Constants
import {CLOUD} from 'src/shared/constants'

export type Props = {
children: JSX.Element
}
Expand Down Expand Up @@ -316,9 +313,7 @@ export const CheckoutProvider: FC<Props> = React.memo(({children}) => {
} finally {
setIsSubmitting(false)
// Refresh whether user is allowed to create new orgs after upgrading to PAYG.
if (CLOUD) {
dispatch(getOrgCreationAllowancesThunk())
}
dispatch(getOrgCreationAllowancesThunk())
}
},
[
Expand Down
4 changes: 2 additions & 2 deletions src/identity/components/GlobalHeader/OrgDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
import {OrganizationSummaries} from 'src/client/unityRoutes'

// Constants
import {CLOUD, CLOUD_URL} from 'src/shared/constants'
import {CLOUD_URL} from 'src/shared/constants'

// Eventing
import {
Expand Down Expand Up @@ -75,7 +75,7 @@ export const OrgDropdown: FC<Props> = ({activeOrg, orgsList}) => {
}

useEffect(() => {
if (CLOUD && orgCreationAllowanceStatus === RemoteDataState.NotStarted) {
if (orgCreationAllowanceStatus === RemoteDataState.NotStarted) {
dispatch(getOrgCreationAllowancesThunk())
}
}, [dispatch, orgCreationAllowanceStatus])
Expand Down

0 comments on commit 61acac8

Please sign in to comment.