test autorisation from quiz
This commit is contained in:
parent
2717c7fd3b
commit
c85c3295f5
@ -37,7 +37,7 @@ export default function QuizPayment() {
|
|||||||
|
|
||||||
useEffect(
|
useEffect(
|
||||||
function redirectIfSignedIn() {
|
function redirectIfSignedIn() {
|
||||||
if (user) navigate(`/payment?action=${action}&dif=${dif}`, { replace: true })
|
if (user && !first) navigate(`/payment?action=${action}&dif=${dif}`, { replace: true })
|
||||||
},
|
},
|
||||||
[navigate, user]
|
[navigate, user]
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user