File tree Expand file tree Collapse file tree
apps/web/modules/survey/link/components Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments