fix: review

This commit is contained in:
Arman
2024-08-05 15:16:20 +02:00
parent 065de36d19
commit 973963b0ad
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ export type Organization = Models.Team<Record<string, unknown>> & {
billingAddressId?: string;
amount: number;
billingTaxId?: string;
billingPlanDowngrade?: string;
billingPlanDowngrade?: Tier;
};
export type OrganizationList = {
@@ -111,8 +111,8 @@
{/if}
{#if $organization?.billingPlanDowngrade}
<Alert type="info" class="common-section">
Your organization will change to a {tierToPlan(BillingPlan.FREE).name} plan once your current
billing cycle ends and your invoice is paid on {toLocaleDate(
Your organization will change to a {tierToPlan($organization?.billingPlanDowngrade)
.name} plan once your current billing cycle ends and your invoice is paid on {toLocaleDate(
$organization.billingNextInvoiceDate
)}.
</Alert>
@@ -111,9 +111,9 @@
}
async function handleSubmit() {
if (billingPlan === BillingPlan.FREE) {
if (isDowngrade) {
await downgrade();
} else {
} else if (isUpgrade) {
await upgrade();
}
}