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) {