We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 87619ee commit 06adf0aCopy full SHA for 06adf0a
1 file changed
src/routes/(console)/project-[region]-[project]/+layout.svelte
@@ -40,9 +40,11 @@
40
export let data: LayoutData;
41
$: isProjectBlocked = getIsProjectBlocked(data.project);
42
$: $disableCommands(isProjectBlocked);
43
- $: allOrgsHavePremiumSupport = $organizationList.teams.every(
44
- (team) => (team as Models.Organization).billingPlanDetails.premiumSupport
45
- );
+ $: allOrgsHavePremiumSupport =
+ isCloud &&
+ ($organizationList?.teams ?? []).every(
46
+ (team) => (team as Models.Organization).billingPlanDetails?.premiumSupport === true
47
+ );
48
$: hasPremiumSupport = $currentPlan?.premiumSupport ?? allOrgsHavePremiumSupport ?? false;
49
50
function contactSupport() {
0 commit comments