mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
fix: type.
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
import { plansInfo } from '$lib/stores/billing';
|
||||
import { Card } from '$lib/components/index';
|
||||
import { app } from '$lib/stores/app';
|
||||
import { currentPlan, organizationList } from '$lib/stores/organization';
|
||||
import { currentPlan, type Organization, organizationList } from '$lib/stores/organization';
|
||||
import { isCloud } from '$lib/system';
|
||||
import { base } from '$app/paths';
|
||||
|
||||
@@ -19,12 +19,12 @@
|
||||
$: hasPremiumSupport = $currentPlan?.premiumSupport ?? areAllOrganizationsPaid ?? false;
|
||||
|
||||
$: areAllOrganizationsPaid = $organizationList.teams.every(
|
||||
(team) => $plansInfo.get(team['billingPlan'])?.premiumSupport
|
||||
(team) => $plansInfo.get((team as Organization).billingPlan)?.premiumSupport
|
||||
);
|
||||
|
||||
// there can only be one free organization
|
||||
$: freeOrganization = $organizationList.teams.find(
|
||||
(team) => !$plansInfo.get(team['billingPlan'])?.premiumSupport
|
||||
(team) => !$plansInfo.get((team as Organization).billingPlan)?.premiumSupport
|
||||
);
|
||||
|
||||
$: upgradeURL = `${base}/organization-${freeOrganization.$id}/change-plan`;
|
||||
|
||||
Reference in New Issue
Block a user