Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
chore: remove unused function
Marc Seitz28715a343dcd
diff --git a/components/billing/upgrade-plan-modal-with-discount.tsx b/components/billing/upgrade-plan-modal-with-discount.tsxindex f1eae15a..d31a50e5 100644--- a/components/billing/upgrade-plan-modal-with-discount.tsx+++ b/components/billing/upgrade-plan-modal-with-discount.tsx@@ -236,11 +236,6 @@ export function UpgradePlanModalWithDiscount({? React.cloneElement(children, { onClick: handleUpgradeClick }): children;- // Calculate discount percentages- const calculateDiscount = (monthlyPrice: number, yearlyPrice: number) => {- return Math.round(((monthlyPrice - yearlyPrice) / monthlyPrice) * 100);- };-// Calculate 30% discounted yearly priceconst getDiscountedYearlyPrice = (yearlyPrice: number) => {return Math.round(yearlyPrice * 0.7); // Round to whole number