From a29036a71c8f0fdbc49adbe77b98d7c7baaf77be Mon Sep 17 00:00:00 2001 From: Darshan Date: Thu, 3 Apr 2025 10:09:43 +0530 Subject: [PATCH] fix: type. --- src/lib/components/support.svelte | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/components/support.svelte b/src/lib/components/support.svelte index 2791d7b73..c43c4f54e 100644 --- a/src/lib/components/support.svelte +++ b/src/lib/components/support.svelte @@ -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`;