From 13ded81b669d8528707f47c3428838a2b3bfd1bc Mon Sep 17 00:00:00 2001 From: Nastya Date: Mon, 29 Jan 2024 12:10:04 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BF=D0=B5=D1=80=D0=B5=D1=85=D0=BE=D0=B4=20?= =?UTF-8?q?=D0=BD=D0=B0=20=D0=BE=D0=BF=D0=BB=D0=B0=D1=82=D1=83=20=D1=81=20?= =?UTF-8?q?=D0=BA=D0=B2=D0=B8=D0=B7=D0=B0=20=D1=82=D0=BE=D0=BB=D1=8C=D0=BA?= =?UTF-8?q?=D0=BE=20=D0=BF=D1=80=D0=B8=20=D1=80=D0=B0=D0=B1=D0=BE=D1=82?= =?UTF-8?q?=D0=B5=20=D0=BA=D0=BE=D0=BC=D0=BF=D0=BE=D0=BD=D0=B5=D0=BD=D1=82?= =?UTF-8?q?=D0=B0,=20=D0=B0=20=D0=BD=D0=B5=20=D0=B5=D0=B3=D0=BE=20=D0=BF?= =?UTF-8?q?=D0=BE=D0=B4=D0=B3=D1=80=D1=83=D0=B7=D0=BA=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/index.tsx | 5 +++-- src/pages/QuizPayment/QuizPayment.tsx | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index 3372d28..98ab00c 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -71,6 +71,7 @@ const App = () => { }, }) + console.log(location) if (location.state?.redirectTo) return @@ -83,7 +84,6 @@ const App = () => { } /> } /> } /> - )} @@ -93,7 +93,7 @@ const App = () => { } /> } /> } /> - } /> + }> }> } /> @@ -112,6 +112,7 @@ const App = () => { }/> + } /> }> }/> }/> diff --git a/src/pages/QuizPayment/QuizPayment.tsx b/src/pages/QuizPayment/QuizPayment.tsx index 71db1c8..e35f2e6 100644 --- a/src/pages/QuizPayment/QuizPayment.tsx +++ b/src/pages/QuizPayment/QuizPayment.tsx @@ -22,7 +22,6 @@ const dif = params.get("dif") const token = params.get("data") const userId = params.get("userid") -history.pushState(null, document.title, "/quizpayment"); let first = true @@ -33,6 +32,7 @@ export default function QuizPayment() { console.log("Я начал работать") if (first) { +history.pushState(null, document.title, "/quizpayment"); try { first = false if (action && dif && token) {