diff --git a/src/components/pages/ABDesign/v1/components/Questionnaire/CustomAnswers/MultipleAnswers/index.tsx b/src/components/pages/ABDesign/v1/components/Questionnaire/CustomAnswers/MultipleAnswers/index.tsx index 36e8815..94e08e8 100644 --- a/src/components/pages/ABDesign/v1/components/Questionnaire/CustomAnswers/MultipleAnswers/index.tsx +++ b/src/components/pages/ABDesign/v1/components/Questionnaire/CustomAnswers/MultipleAnswers/index.tsx @@ -3,7 +3,7 @@ import styles from "./styles.module.scss"; import { useTranslation } from "react-i18next"; import { useDispatch, useSelector } from "react-redux"; import { actions, selectors } from "@/store"; -import { useNavigate } from "react-router-dom"; +import {useNavigate, useLocation} from "react-router-dom"; import routes from "@/routes"; import Answer from "../../../../ui/Answer"; import QuestionnaireGreenButton from "../../../../ui/GreenButton"; @@ -19,6 +19,7 @@ function MultiplyAnswers({ answers }: IMultiplyAnswersProps) { const { currentlyAffecting, gender } = useSelector( selectors.selectQuestionnaire ); + const location = useLocation(); const handleClick = (answer: IAnswer) => { if (currentlyAffecting.includes(`$${answer.id}`)) { @@ -54,6 +55,7 @@ function MultiplyAnswers({ answers }: IMultiplyAnswersProps) { ); }; + return ( <>