aboutsummaryrefslogtreecommitdiff
path: root/src/pages
diff options
context:
space:
mode:
Diffstat (limited to 'src/pages')
-rw-r--r--src/pages/AuthPage/SignUpForm.tsx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pages/AuthPage/SignUpForm.tsx b/src/pages/AuthPage/SignUpForm.tsx
index 4a84830..25b79ff 100644
--- a/src/pages/AuthPage/SignUpForm.tsx
+++ b/src/pages/AuthPage/SignUpForm.tsx
@@ -38,8 +38,7 @@ const SignUpForm: React.FC<PropTypes> = ({ logIn }) => {
const email = emailRef.current?.value;
if (username && password) {
post('/users', { username, password, email }).then(() => {
- logIn(username, password).then(success => {
- });
+ logIn(username, password);
});
} else setError(true);
};