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:
Hemant
2023-10-22 19:31:18 +05:30
committed by GitHub
parent 6ea2c7b354
commit ceb384a6f4

View File

@@ -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}