correction of working capacity
This commit is contained in:
parent
bc293f6370
commit
fa5fe30c34
11 changed files with 180 additions and 82 deletions
|
|
@ -30,7 +30,11 @@ const RegisterForm = () => {
|
|||
const responseData = await registerUser({username, firstName, lastName, email, password});
|
||||
console.log(responseData); //проверка вывода данных
|
||||
if (responseData && !responseData.error) {
|
||||
console.log('Регистрация успешна')
|
||||
console.log('Регистрация успешна');
|
||||
localStorage.setItem("user", JSON.stringify({
|
||||
firstName,
|
||||
lastName
|
||||
}));
|
||||
navigate('/my-surveys');
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue