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:
Victor Hugo dos Santos
2025-07-30 05:20:01 +07:00
committed by GitHub
parent 78f5de2f35
commit e29a67b1f6
2 changed files with 4 additions and 4 deletions

View File

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

View File

@@ -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}
/>
);