Skip to content

Commit e29a67b

Browse files
victorvhs017ompharateDhruwang
authored
chore: run checks for PR 6304 (formbricks#6309)
Co-authored-by: ompharate <ompharate31@gmail.com> Co-authored-by: Dhruwang <dhruwangjariwala18@gmail.com>
1 parent 78f5de2 commit e29a67b

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

apps/web/modules/survey/link/components/link-survey.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export const LinkSurvey = ({
7979

8080
const prefillValue = getPrefillValue(survey, searchParams, languageCode);
8181

82-
const [autoFocus, setAutofocus] = useState(false);
82+
const [autoFocus, setAutoFocus] = useState(false);
8383
const hasFinishedSingleUseResponse = useMemo(() => {
8484
if (singleUseResponse?.finished) {
8585
return true;
@@ -91,7 +91,7 @@ export const LinkSurvey = ({
9191
// Not in an iframe, enable autofocus on input fields.
9292
useEffect(() => {
9393
if (window.self === window.top) {
94-
setAutofocus(true);
94+
setAutoFocus(true);
9595
}
9696
// eslint-disable-next-line react-hooks/exhaustive-deps -- only run once
9797
}, []);
@@ -121,7 +121,7 @@ export const LinkSurvey = ({
121121
return <SurveyLinkUsed singleUseMessage={survey.singleUse} project={project} />;
122122
}
123123

124-
if (survey.isVerifyEmailEnabled && emailVerificationStatus !== "verified") {
124+
if (survey.isVerifyEmailEnabled && emailVerificationStatus !== "verified" && !isPreview) {
125125
if (emailVerificationStatus === "fishy") {
126126
return (
127127
<VerifyEmail

apps/web/modules/survey/link/components/survey-renderer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export const renderSurvey = async ({
6464
return (
6565
<SurveyInactive
6666
status={survey.status}
67-
surveyClosedMessage={survey.surveyClosedMessage ? survey.surveyClosedMessage : undefined}
67+
surveyClosedMessage={survey.surveyClosedMessage}
6868
project={project || undefined}
6969
/>
7070
);

0 commit comments

Comments
 (0)