Merge pull request #11 from apuc/authentication

auth fix
This commit is contained in:
kavalar 2021-08-09 16:40:49 +03:00 committed by GitHub
commit 2d6a3e49e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,14 +67,14 @@ const AuthForPartners = () => {
onClick={!isLoading ? (e) => {
e.preventDefault();
dispatch(loading(true))
// fetchAuth({
// username,
// password,
// dispatch: ()=> {
// dispatch(auth(true))
// dispatch(loading(false))
// }
// })
fetchAuth({
username,
password,
dispatch: ()=> {
dispatch(auth(true))
dispatch(loading(false))
}
})
} : ()=>{}}
>
{ isLoading ? <Loader /> : 'Войти' }