@ -47,7 +47,7 @@ function fetchAccount(token): Promise<Account> {
|
||||
})
|
||||
.then(res => {
|
||||
// When failed to authenticate user
|
||||
if (res.status !== 200 && res.status < 500) {
|
||||
if (res.status >= 400 && res.status < 500) {
|
||||
return signout();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user