diff options
author | eug-vs <eug-vs@keemail.me> | 2020-06-25 15:51:51 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2020-06-25 15:51:51 +0300 |
commit | f24ea161fd2aef6ba75418c965d444ccbfd53fac (patch) | |
tree | c60f6cc68fa6174272c4f1710630f0a2d6d09cc7 /src/pages/AuthPage/SignUpForm.tsx | |
parent | 802b7417c8b16cc8922c0a1526e9b769ca2cc28f (diff) | |
download | which-ui-f24ea161fd2aef6ba75418c965d444ccbfd53fac.tar.gz |
style: fix linting erros
Diffstat (limited to 'src/pages/AuthPage/SignUpForm.tsx')
-rw-r--r-- | src/pages/AuthPage/SignUpForm.tsx | 3 |
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); }; |