From f3abf257db38e0314deb2a4ef1c422bd5cd5d21f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B5=D0=BD=D0=B8=D1=81=20=D0=9A=D0=B0=D1=82=D0=B0?= =?UTF-8?q?=D0=B5=D0=B2?= Date: Mon, 6 May 2024 19:48:45 +0000 Subject: [PATCH] AW-69-additional-purchases --- src/components/App/index.tsx | 3 ++- src/components/PaymentPage/results/SuccessPage/index.tsx | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/App/index.tsx b/src/components/App/index.tsx index 2d70791..019d905 100755 --- a/src/components/App/index.tsx +++ b/src/components/App/index.tsx @@ -228,7 +228,8 @@ function App(): JSX.Element { return dispatch(actions.status.update("lead")); } })(); - }, [dispatch, api, token, user]); + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [dispatch, api, token]); useEffect(() => { async function getApng() { diff --git a/src/components/PaymentPage/results/SuccessPage/index.tsx b/src/components/PaymentPage/results/SuccessPage/index.tsx index 59966ed..6a9b04e 100644 --- a/src/components/PaymentPage/results/SuccessPage/index.tsx +++ b/src/components/PaymentPage/results/SuccessPage/index.tsx @@ -13,7 +13,7 @@ function PaymentSuccessPage(): JSX.Element { const dispatch = useDispatch(); const handleNext = () => { dispatch(actions.status.update("subscribed")); - navigate(routes.client.home()); + navigate(routes.client.addReport()); }; return (