aboutsummaryrefslogtreecommitdiff
path: root/src/pages/AuthPage/SignUpForm.tsx
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-06-25 15:51:51 +0300
committereug-vs <eug-vs@keemail.me>2020-06-25 15:51:51 +0300
commitf24ea161fd2aef6ba75418c965d444ccbfd53fac (patch)
treec60f6cc68fa6174272c4f1710630f0a2d6d09cc7 /src/pages/AuthPage/SignUpForm.tsx
parent802b7417c8b16cc8922c0a1526e9b769ca2cc28f (diff)
downloadwhich-ui-f24ea161fd2aef6ba75418c965d444ccbfd53fac.tar.gz
style: fix linting erros
Diffstat (limited to 'src/pages/AuthPage/SignUpForm.tsx')
-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);
};