mirror of
https://codeberg.org/MarkusThielker/next-ory.git
synced 2025-04-17 16:11:18 +00:00
NORY-26: remove case on top of error handling
This commit is contained in:
parent
b2552cb729
commit
b903517e88
1 changed files with 0 additions and 6 deletions
|
@ -18,12 +18,6 @@ export const HandleError = (
|
||||||
return async (
|
return async (
|
||||||
error: AxiosError<any, unknown>,
|
error: AxiosError<any, unknown>,
|
||||||
): Promise<AxiosError | void> => {
|
): Promise<AxiosError | void> => {
|
||||||
if (!error.response || error.response?.status === 0) {
|
|
||||||
window.location.href = `/flow/error?error=${encodeURIComponent(
|
|
||||||
JSON.stringify(error.response),
|
|
||||||
)}`;
|
|
||||||
return Promise.resolve();
|
|
||||||
}
|
|
||||||
|
|
||||||
const responseData = error.response?.data || {};
|
const responseData = error.response?.data || {};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue