From ceb384a6f42c6535cec2e64ba69f059dbface96d Mon Sep 17 00:00:00 2001 From: Hemant Date: Sun, 22 Oct 2023 19:31:18 +0530 Subject: [PATCH] fix: Share modal not opening (#1387) Co-authored-by: Johannes <72809645+jobenjada@users.noreply.github.com> Co-authored-by: ShubhamPalriwala --- .../(analysis)/summary/components/LinkModalButton.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/summary/components/LinkModalButton.tsx b/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/summary/components/LinkModalButton.tsx index 8eb9928ea9..e93b16239a 100644 --- a/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/summary/components/LinkModalButton.tsx +++ b/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/summary/components/LinkModalButton.tsx @@ -25,7 +25,6 @@ export default function LinkSurveyShareButton({ profile, }: LinkSurveyShareButtonProps) { const [showLinkModal, setShowLinkModal] = useState(false); - const isSingleUse = survey.singleUse?.enabled ?? false; return ( <> @@ -40,7 +39,7 @@ export default function LinkSurveyShareButton({ }}> - {showLinkModal && isSingleUse && ( + {showLinkModal && (