mirror of
https://github.com/formbricks/formbricks.git
synced 2026-03-13 01:58:40 -05:00
fix: Share modal not opening (#1387)
Co-authored-by: Johannes <72809645+jobenjada@users.noreply.github.com> Co-authored-by: ShubhamPalriwala <spalriwalau@gmail.com>
This commit is contained in:
@@ -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({
|
||||
}}>
|
||||
<ShareIcon className="h-5 w-5" />
|
||||
</Button>
|
||||
{showLinkModal && isSingleUse && (
|
||||
{showLinkModal && (
|
||||
<ShareEmbedSurvey
|
||||
survey={survey}
|
||||
open={showLinkModal}
|
||||
|
||||
Reference in New Issue
Block a user