Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
feat: add isTrial to usePlan
Marc Seitzafe38c38144c
diff --git a/lib/swr/use-billing.ts b/lib/swr/use-billing.tsindex 6146a4b7..362d077f 100644--- a/lib/swr/use-billing.ts+++ b/lib/swr/use-billing.ts@@ -82,6 +82,7 @@ export function usePlan() {return {plan: parsedPlan.plan ?? "free",trial: parsedPlan.trial,+ isTrial: !!parsedPlan.trial,isOldAccount: parsedPlan.old,isCustomer: plan?.isCustomer,isAnnualPlan: plan?.subscriptionCycle === "yearly",