From f24ea161fd2aef6ba75418c965d444ccbfd53fac Mon Sep 17 00:00:00 2001 From: eug-vs Date: Thu, 25 Jun 2020 15:51:51 +0300 Subject: style: fix linting erros --- src/pages/AuthPage/SignUpForm.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/pages/AuthPage/SignUpForm.tsx') 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 = ({ 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); }; -- cgit v1.2.3