diff --git a/apps/web/app/(app)/environments/[environmentId]/settings/billing/PricingTable.tsx b/apps/web/app/(app)/environments/[environmentId]/settings/billing/PricingTable.tsx index fbf4a3896c..dcf089c2f3 100644 --- a/apps/web/app/(app)/environments/[environmentId]/settings/billing/PricingTable.tsx +++ b/apps/web/app/(app)/environments/[environmentId]/settings/billing/PricingTable.tsx @@ -51,7 +51,8 @@ export default function PricingTable({ environmentId, session }: PricingTablePro "Unlimited surveys", "Unlimited team members", "Remove branding", - "100 responses per survey", + "Unlimited link survey responses", + "100 responses per web-app survey", "Granular targeting", "In-product surveys", "Link surveys", diff --git a/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/data.ts b/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/data.ts index cd010a43e7..6cbf2e2917 100644 --- a/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/data.ts +++ b/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/data.ts @@ -13,7 +13,10 @@ export const getAnalysisData = async (surveyId: string, environmentId: string) = if (!team) throw new Error(`Team not found for environment: ${environmentId}`); if (survey.environmentId !== environmentId) throw new Error(`Survey not found: ${surveyId}`); const limitReached = - IS_FORMBRICKS_CLOUD && team.plan === "free" && allResponses.length >= RESPONSES_LIMIT_FREE; + IS_FORMBRICKS_CLOUD && + team.plan === "free" && + survey.type === "web" && + allResponses.length >= RESPONSES_LIMIT_FREE; const responses = limitReached ? allResponses.slice(0, RESPONSES_LIMIT_FREE) : allResponses; const responsesCount = allResponses.length; diff --git a/packages/ee/billing/components/PricingTable.tsx b/packages/ee/billing/components/PricingTable.tsx deleted file mode 100644 index fc1cd0d891..0000000000 --- a/packages/ee/billing/components/PricingTable.tsx +++ /dev/null @@ -1,25 +0,0 @@ -import Script from "next/script"; - -declare global { - namespace JSX { - interface IntrinsicElements { - ["stripe-pricing-table"]: React.DetailedHTMLProps, HTMLElement>; - } - } -} - -export default function BillingPage({ organisationId }: { organisationId: string }) { - if (!process.env.NEXT_PUBLIC_STRIPE_PRICING_TABLE_ID || !process.env.NEXT_PUBLIC_STRIPE_PUBLIC_KEY) { - return
Stripe environment variables not set
; - } - - return ( - <> -