mirror of
https://github.com/formbricks/formbricks.git
synced 2026-04-23 21:59:28 -05:00
Merge branch 'main' of github.com:formbricks/formbricks into shubham/for-1122-tweak-add-loading-state-to-delete-button-in-delete-product
This commit is contained in:
@@ -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",
|
||||
|
||||
+4
-1
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user