diff --git a/front/src/components/survey/surveyQuestionsList.component.tsx b/front/src/components/survey/surveyQuestionsList.component.tsx index 2fd15344b..dc28627b3 100644 --- a/front/src/components/survey/surveyQuestionsList.component.tsx +++ b/front/src/components/survey/surveyQuestionsList.component.tsx @@ -26,13 +26,13 @@ const SurveyQuestionsList: React.FC = ({ trackingEvent, saveCurrentSurvey, }) => { - const [nextButtonState, setNextButtonState] = React.useState(false); + const [nextButtonState] = React.useState(false); + const onSwiperIndexChanged = useCallback( (item: { index: number; prevIndex: number }) => { if (saveCurrentSurvey) saveCurrentSurvey(item.index); - setNextButtonState(!nextButtonState); }, - [nextButtonState, saveCurrentSurvey] + [saveCurrentSurvey] ); return ( diff --git a/front/src/components/survey/tndSurvey/tndOnboarding.component.tsx b/front/src/components/survey/tndSurvey/tndOnboarding.component.tsx index 828adf074..2852ec4e0 100644 --- a/front/src/components/survey/tndSurvey/tndOnboarding.component.tsx +++ b/front/src/components/survey/tndSurvey/tndOnboarding.component.tsx @@ -105,6 +105,7 @@ const TndOnboarding: React.FC = ({ onBoardingIsDone }) => { @@ -120,6 +121,7 @@ const TndOnboarding: React.FC = ({ onBoardingIsDone }) => {