1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 12:56:41 +07:00

fixed error handling on profile

This commit is contained in:
Fedor Katurov 2021-03-04 14:02:03 +07:00
parent 0873e77ff4
commit 27665c462a
2 changed files with 8 additions and 10 deletions

View file

@ -136,7 +136,9 @@ export function configureStore(): {
store.dispatch(authLogout());
}
throw new Error(error?.response?.data?.error || error?.message || error?.response?.statusText);
error.message = error?.response?.data?.error || error?.response?.statusText || error.message;
throw error;
});
return { store, persistor };