Skip to content

Commit 4f4855a

Browse files
committed
revert: unnecessary changes.
1 parent 3735257 commit 4f4855a

4 files changed

Lines changed: 5 additions & 8 deletions

File tree

src/lib/stores/billing.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,6 @@ export async function checkForMissingPaymentMethod() {
560560
Query.isNull('backupPaymentMethodId'),
561561
Query.equal('platform', Platform.Appwrite)
562562
]);
563-
564563
if (orgs?.total) {
565564
orgMissingPaymentMethod.set(orgs.teams[0]);
566565
headerAlert.add({

src/routes/(console)/account/organizations/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
// For known plans, use tierToPlan
4343
const tierData = tierToPlan(billingPlan as Tier);
4444
45-
// If it's not a custom plan, or we got a non-custom result, return the name
45+
// If it's not a custom plan or we got a non-custom result, return the name
4646
if (tierData.name !== 'Custom') {
4747
return tierData.name;
4848
}

src/routes/(console)/apply-credit/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@
229229
campaign?.plan && $plansInfo.get(campaign.plan) ? $plansInfo.get(campaign.plan) : null;
230230
const newPlan = $plansInfo.get(billingPlan);
231231
232-
// if campaign has a plan, and it's higher than the selected new plan
232+
// if campaign has a plan and it's higher than the selected new plan
233233
if (campaignPlan?.order > newPlan?.order) {
234234
return campaignPlan.$id as Tier;
235235
}

src/routes/(console)/organization-[organization]/billing/+page.svelte

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,9 @@
125125
{/if}
126126
{#if organization?.billingPlanDowngrade}
127127
<Alert.Inline status="info">
128-
Your organization has changed to {tierToPlan(organization?.billingPlanDowngrade).name}
129-
plan. You will continue to have access to {tierToPlan(organization?.billingPlan).name}
130-
plan features until your billing period ends on {toLocaleDate(
131-
organization.billingNextInvoiceDate
132-
)}.
128+
Your organization has changed to {tierToPlan(organization?.billingPlanDowngrade).name} plan.
129+
You will continue to have access to {tierToPlan(organization?.billingPlan).name} plan features
130+
until your billing period ends on {toLocaleDate(organization.billingNextInvoiceDate)}.
133131
</Alert.Inline>
134132
{/if}
135133
{#if $useNewPricingModal}

0 commit comments

Comments
 (0)