1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00
This commit is contained in:
Zhiyuan Zheng
2021-05-30 15:40:06 +02:00
parent 20e4ef69ea
commit 8df45475d8
5 changed files with 14 additions and 12 deletions

View File

@ -43,11 +43,7 @@ const netInfo = async (): Promise<{
})
.catch(error => {
log('error', 'netInfo', 'local credential check failed')
if (
error.status &&
typeof error.status === 'number' &&
error.status === 401
) {
if (error.status && error.status == 401) {
store.dispatch(removeInstance(instance))
}
return Promise.resolve({