diff --git a/web/satellite/src/views/all-dashboard/AllDashboardArea.vue b/web/satellite/src/views/all-dashboard/AllDashboardArea.vue index a5d9bca8b..8d5b124a5 100644 --- a/web/satellite/src/views/all-dashboard/AllDashboardArea.vue +++ b/web/satellite/src/views/all-dashboard/AllDashboardArea.vue @@ -104,6 +104,16 @@ const showMFARecoveryCodeBar = computed((): boolean => { return user.isMFAEnabled && user.mfaRecoveryCodeCount < recoveryCodeWarningThreshold; }); +/** + * Indicates if user should be redirected to onboarding pricing plan step. + */ +const shouldShowPricingPlan = computed(() => { + return usersStore.shouldOnboard && + usersStore.state.user.partner !== '' && + configStore.state.config.pricingPackagesEnabled && + !appStore.state.hasShownPricingPlan; +}); + /** * Toggles MFA recovery modal visibility. */ @@ -171,7 +181,7 @@ onMounted(async () => { appStore.changeState(FetchState.LOADED); - if (usersStore.shouldOnboard && configStore.state.config.pricingPackagesEnabled && !appStore.state.hasShownPricingPlan) { + if (shouldShowPricingPlan.value) { appStore.setHasShownPricingPlan(true); // if the user is not legible for a pricing plan, they'll automatically be // navigated back to all projects dashboard.