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:
parent
0873e77ff4
commit
27665c462a
2 changed files with 8 additions and 10 deletions
|
@ -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 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue