fix: update trial entitlement check and adjust follow-up button text

This commit is contained in:
Dhruwang
2026-03-12 11:51:27 +05:30
parent 72a8998847
commit 9c0dce9046
2 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ const TRIAL_RESTRICTED_ENTITLEMENT_KEYS = [
] as const satisfies readonly TEntitlementFeature[];
const isTrialRestrictedEntitlement = (featureLookupKey: TEntitlementFeature): boolean =>
TRIAL_RESTRICTED_ENTITLEMENT_KEYS.some((restrictedFeature) => restrictedFeature === featureLookupKey);
(TRIAL_RESTRICTED_ENTITLEMENT_KEYS as readonly TEntitlementFeature[]).includes(featureLookupKey);
export const hasOrganizationEntitlement = async (
organizationId: string,
@@ -19,6 +19,7 @@ interface FollowUpsViewProps {
mailFrom: string;
isSurveyFollowUpsAllowed: boolean;
isFormbricksCloud: boolean;
isTrialing: boolean;
userEmail: string;
teamMemberDetails: TFollowUpEmailToUser[];
locale: TUserLocale;
@@ -31,6 +32,7 @@ export const FollowUpsView = ({
mailFrom,
isSurveyFollowUpsAllowed,
isFormbricksCloud,
isTrialing,
userEmail,
teamMemberDetails,
locale,
@@ -48,7 +50,9 @@ export const FollowUpsView = ({
description={t("environments.surveys.edit.follow_ups_empty_description")}
buttons={[
{
text: isFormbricksCloud ? t("common.start_free_trial") : t("common.request_trial_license"),
text: isFormbricksCloud
? t("environments.settings.billing.upgrade")
: t("common.request_trial_license"),
href: isFormbricksCloud
? `/environments/${localSurvey.environmentId}/settings/billing`
: "https://formbricks.com/docs/self-hosting/license",