Fixed useSend loading flow on abort
Made data null on error Made it remain in loading state on refetch and remount abortion
This commit is contained in:
@ -20,7 +20,7 @@ function useSignIn() {
|
||||
body: formData,
|
||||
})
|
||||
|
||||
if (token !== undefined) {
|
||||
if (token !== null && token !== undefined) {
|
||||
setToken(token)
|
||||
|
||||
return true
|
||||
|
Reference in New Issue
Block a user