Skip to content

Commit

Permalink
Merge branch 'master' into depot-runners-test
Browse files Browse the repository at this point in the history
  • Loading branch information
kylegalbraith authored Mar 14, 2024
2 parents 0a3ba74 + 92fa539 commit 807f8cc
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions frontend/src/scenes/onboarding/onboardingLogic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { FEATURE_FLAGS } from 'lib/constants'
import { featureFlagLogic, FeatureFlagsSet } from 'lib/logic/featureFlagLogic'
import { eventUsageLogic } from 'lib/utils/eventUsageLogic'
import { billingLogic } from 'scenes/billing/billingLogic'
import { preflightLogic } from 'scenes/PreflightCheck/preflightLogic'
import { Scene } from 'scenes/sceneTypes'
import { teamLogic } from 'scenes/teamLogic'
import { urls } from 'scenes/urls'
Expand Down Expand Up @@ -92,6 +93,8 @@ export const onboardingLogic = kea<onboardingLogicType>([
['featureFlags'],
userLogic,
['user'],
preflightLogic,
['isCloudOrDev'],
],
actions: [billingLogic, ['loadBillingSuccess'], teamLogic, ['updateCurrentTeam', 'updateCurrentTeamSuccess']],
}),
Expand Down Expand Up @@ -200,8 +203,11 @@ export const onboardingLogic = kea<onboardingLogicType>([
},
],
shouldShowBillingStep: [
(s) => [s.product, s.subscribedDuringOnboarding],
(product: BillingProductV2Type | null, subscribedDuringOnboarding: boolean) => {
(s) => [s.product, s.subscribedDuringOnboarding, s.isCloudOrDev],
(product: BillingProductV2Type | null, subscribedDuringOnboarding: boolean, isCloudOrDev) => {
if (!isCloudOrDev) {
return false
}
const hasAllAddons = product?.addons?.every((addon) => addon.subscribed)
return !product?.subscribed || !hasAllAddons || subscribedDuringOnboarding
},
Expand Down

0 comments on commit 807f8cc

Please sign in to comment.