mirror of
https://github.com/formbricks/formbricks.git
synced 2026-01-08 16:21:09 -06:00
chore: run checks for PR 6304 (#6309)
Co-authored-by: ompharate <ompharate31@gmail.com> Co-authored-by: Dhruwang <dhruwangjariwala18@gmail.com>
This commit is contained in:
committed by
GitHub
parent
78f5de2f35
commit
e29a67b1f6
@@ -79,7 +79,7 @@ export const LinkSurvey = ({
|
||||
|
||||
const prefillValue = getPrefillValue(survey, searchParams, languageCode);
|
||||
|
||||
const [autoFocus, setAutofocus] = useState(false);
|
||||
const [autoFocus, setAutoFocus] = useState(false);
|
||||
const hasFinishedSingleUseResponse = useMemo(() => {
|
||||
if (singleUseResponse?.finished) {
|
||||
return true;
|
||||
@@ -91,7 +91,7 @@ export const LinkSurvey = ({
|
||||
// Not in an iframe, enable autofocus on input fields.
|
||||
useEffect(() => {
|
||||
if (window.self === window.top) {
|
||||
setAutofocus(true);
|
||||
setAutoFocus(true);
|
||||
}
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps -- only run once
|
||||
}, []);
|
||||
@@ -121,7 +121,7 @@ export const LinkSurvey = ({
|
||||
return <SurveyLinkUsed singleUseMessage={survey.singleUse} project={project} />;
|
||||
}
|
||||
|
||||
if (survey.isVerifyEmailEnabled && emailVerificationStatus !== "verified") {
|
||||
if (survey.isVerifyEmailEnabled && emailVerificationStatus !== "verified" && !isPreview) {
|
||||
if (emailVerificationStatus === "fishy") {
|
||||
return (
|
||||
<VerifyEmail
|
||||
|
||||
@@ -64,7 +64,7 @@ export const renderSurvey = async ({
|
||||
return (
|
||||
<SurveyInactive
|
||||
status={survey.status}
|
||||
surveyClosedMessage={survey.surveyClosedMessage ? survey.surveyClosedMessage : undefined}
|
||||
surveyClosedMessage={survey.surveyClosedMessage}
|
||||
project={project || undefined}
|
||||
/>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user