diff --git a/src/pages/ViewPublicationPage/ContactForm.tsx b/src/pages/ViewPublicationPage/ContactForm.tsx index 5e9a9f63..dd694179 100644 --- a/src/pages/ViewPublicationPage/ContactForm.tsx +++ b/src/pages/ViewPublicationPage/ContactForm.tsx @@ -76,7 +76,7 @@ export const ContactForm = ({ const mode = modes; const { questions } = useQuestionsStore(); const theme = useTheme(); - const isMobile = useMediaQuery(theme.breakpoints.down(600)); + const isMobile = useMediaQuery(theme.breakpoints.down(850)); const [ready, setReady] = useState(false); const followNextForm = () => { setShowContactForm(false); @@ -98,6 +98,18 @@ export const ContactForm = ({ } }); + let FCcopy: any = quiz?.config.formContact.fields; + let filteredFC = {}; + for (let i in FCcopy) { + let field = FCcopy[i]; + + if (field.used) { + filteredFC[i] = field; + } + } + let isWide = Object.keys(filteredFC).length > 2; + console.log(isWide); + return ( - +