mirror of
https://github.com/balzack/databag.git
synced 2025-04-22 17:45:18 +00:00
fixing create login
This commit is contained in:
parent
7f5b80a70b
commit
87f21ed5c6
@ -90,19 +90,10 @@ export function useCreateAccount() {
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
if (app) {
|
||||
if (app.state) {
|
||||
if (app.state.access) {
|
||||
navigate('/session')
|
||||
}
|
||||
}
|
||||
else {
|
||||
let params = new URLSearchParams(search);
|
||||
let token = params.get("add");
|
||||
if (token) {
|
||||
updateState({ token });
|
||||
}
|
||||
}
|
||||
let params = new URLSearchParams(search);
|
||||
let token = params.get("add");
|
||||
if (token) {
|
||||
updateState({ token });
|
||||
}
|
||||
}, [app, navigate, search])
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user