diff --git a/apps/eo_web/src/router/Router.tsx b/apps/eo_web/src/router/Router.tsx index de8e4442..d77f71d9 100644 --- a/apps/eo_web/src/router/Router.tsx +++ b/apps/eo_web/src/router/Router.tsx @@ -99,7 +99,7 @@ export const Router = () => { } path={ROUTES.cancerForm} /> } path={ROUTES.cancerSurvey} /> - } path={ROUTES.cancerSurveyThankYou} /> + } path={ROUTES.cancerSurveyThankYou} /> {/* ATHLETES */} } path={ROUTES.athleteSurvey} /> diff --git a/apps/eo_web/src/screens/Cancer/SurveyForm.tsx b/apps/eo_web/src/screens/Cancer/SurveyForm.tsx index 6000d191..5bc59f69 100644 --- a/apps/eo_web/src/screens/Cancer/SurveyForm.tsx +++ b/apps/eo_web/src/screens/Cancer/SurveyForm.tsx @@ -27,7 +27,7 @@ export const SurveyForm = () => { useEffect(() => { jotformScript(formId); - }, []); + }, [formId]); return (