From 17279cb3febe2bf570355417666d4647e4527bd7 Mon Sep 17 00:00:00 2001 From: Piyush Gupta <56182734+gupta-piyush19@users.noreply.github.com> Date: Thu, 20 Jun 2024 16:25:06 +0530 Subject: [PATCH] fix: null channel survey type bug (#2788) --- .../[surveyId]/edit/components/HowToSendCard.tsx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/apps/web/app/(app)/(survey-editor)/environments/[environmentId]/surveys/[surveyId]/edit/components/HowToSendCard.tsx b/apps/web/app/(app)/(survey-editor)/environments/[environmentId]/surveys/[surveyId]/edit/components/HowToSendCard.tsx index c1d4183be1..db0f33f627 100644 --- a/apps/web/app/(app)/(survey-editor)/environments/[environmentId]/surveys/[surveyId]/edit/components/HowToSendCard.tsx +++ b/apps/web/app/(app)/(survey-editor)/environments/[environmentId]/surveys/[surveyId]/edit/components/HowToSendCard.tsx @@ -79,7 +79,7 @@ export const HowToSendCard = ({ localSurvey, setLocalSurvey, environment, produc description: "Run targeted surveys on public websites.", comingSoon: false, alert: !websiteSetupCompleted, - hide: product.config.channel !== "website", + hide: product.config.channel && product.config.channel !== "website", }, { id: "app", @@ -88,7 +88,7 @@ export const HowToSendCard = ({ localSurvey, setLocalSurvey, environment, produc description: "Embed a survey in your web app to collect responses with user identification.", comingSoon: false, alert: !appSetupCompleted, - hide: product.config.channel !== "app", + hide: product.config.channel && product.config.channel !== "app", }, { id: "link", @@ -125,7 +125,7 @@ export const HowToSendCard = ({ localSurvey, setLocalSurvey, environment, produc onOpenChange={setOpen} className={cn( open ? "" : "hover:bg-slate-50", - "w-full space-y-2 rounded-lg border border-slate-300 bg-white " + "w-full space-y-2 rounded-lg border border-slate-300 bg-white" )}> -
+
@@ -192,7 +192,7 @@ export const HowToSendCard = ({ localSurvey, setLocalSurvey, environment, produc {option.alert && (
-
+

Your {option.id} is not yet connected to Formbricks.

@@ -217,7 +217,7 @@ export const HowToSendCard = ({ localSurvey, setLocalSurvey, environment, produc {promotedFeaturesString && (
-
+

You can also use Formbricks to run {promotedFeaturesString} surveys. Create a new product for your {promotedFeaturesString} to use this feature.