- Current plan: {teamSubscription ? 'Team' : 'Community Team'}
+ Current plan: {teamSubscription ? 'Team' : 'Early Adopter Team'}
diff --git a/packages/ee/server-only/stripe/transfer-team-subscription.ts b/packages/ee/server-only/stripe/transfer-team-subscription.ts
index 953efcaf4..a64b6c785 100644
--- a/packages/ee/server-only/stripe/transfer-team-subscription.ts
+++ b/packages/ee/server-only/stripe/transfer-team-subscription.ts
@@ -33,7 +33,7 @@ type TransferStripeSubscriptionOptions = {
* Will create a new subscription for the new owner and cancel the old one.
*
* Returns the subscription that should be associated with the team, null if
- * no subscription is needed (for community plan).
+ * no subscription is needed (for early adopter plan).
*/
export const transferTeamSubscription = async ({
user,
From 927cb1a9344fcba29ee28a99fc394ae4c7c8558b Mon Sep 17 00:00:00 2001
From: Lucas Smith
Date: Tue, 5 Mar 2024 23:05:32 +0000
Subject: [PATCH 2/2] fix: incorrect download filename logic
---
packages/lib/client-only/download-pdf.ts | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/packages/lib/client-only/download-pdf.ts b/packages/lib/client-only/download-pdf.ts
index 0f757c98d..2e450de0c 100644
--- a/packages/lib/client-only/download-pdf.ts
+++ b/packages/lib/client-only/download-pdf.ts
@@ -15,12 +15,10 @@ export const downloadPDF = async ({ documentData, fileName }: DownloadPDFProps)
type: 'application/pdf',
});
- const [baseTitle] = fileName?.includes('.pdf')
- ? fileName.split('.pdf')
- : [fileName ?? 'document'];
+ const baseTitle = (fileName ?? 'document').replace(/\.pdf$/, '');
downloadFile({
- filename: baseTitle,
+ filename: `${baseTitle}.pdf`,
data: blob,
});
};