diff --git a/src/pages/ResultPage/ResultPage.tsx b/src/pages/ResultPage/ResultPage.tsx index c49ef5e3..a70dcb38 100644 --- a/src/pages/ResultPage/ResultPage.tsx +++ b/src/pages/ResultPage/ResultPage.tsx @@ -3,6 +3,7 @@ import { ResultSettings } from "./ResultSettings"; import { decrementCurrentStep, incrementCurrentStep, + setCurrentStep, } from "@root/quizes/actions"; import { Box, Button } from "@mui/material"; import ArrowLeft from "@icons/questionsPage/arrowLeft"; diff --git a/src/utils/hooks/useAutoPay.ts b/src/utils/hooks/useAutoPay.ts index 530c2378..cc46fde5 100644 --- a/src/utils/hooks/useAutoPay.ts +++ b/src/utils/hooks/useAutoPay.ts @@ -27,7 +27,7 @@ export const useAfterPay = () => { if (quizId) { setEditQuizId(Number(quizId)); setCurrentStep(17); // Шаг для персонализации AI - navigate("/edit"); + navigate("/personalization-ai"); } } }, [wayback, navigate]);